Previous: 4.51.2.4.16. ogDone() To the Table of Contents Next: 4.51.2.4.18. ogFillGouraudPolygon()
4.51.2.4.16. ogDone() Table of Contents 4.51.2.4.18. ogFillGouraudPolygon()

- 4.51.2.4.17. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.17. ogFillCircle()


4.51.2.4.17. ogFillCircle()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Draws a filled circle.

Declaration:
  procedure ogFillCircle(xCenter, yCenter:int32; radius, colour:uInt32);
Remarks:

Draws a filled circle using (xCenter, yCenter) as the center point using radius and colour for the radius and colour, respectively.

See also: Sample code:
{ogFillCircle.PAS}

uses
 ObjGfx40, CRT;

var
 radius: uInt32;

begin
  randomize;

  if not screen^.ogCreate(640, 480, OG_PIXFMT_8BPP) then
    begin
      writeln('Error setting video mode');
      halt
    end;

  repeat
    with screen^ do
      ogFillCircle(random(ogGetMaxX), random(ogGetMaxY),
                   random(ogGetMaxX), random(255));
  until keyPressed;
  while keyPressed do readKey;
end.



Previous: 4.51.2.4.16. ogDone() To the Table of Contents Next: 4.51.2.4.18. ogFillGouraudPolygon()
4.51.2.4.16. ogDone() Table of Contents 4.51.2.4.18. ogFillGouraudPolygon()

- 4.51.2.4.17. -