Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
CIRCLE Keyword
CIRCLE integer-expression, integer-expression, integer-expression, boolean-expression

Draws a circle using the current graphics colour (set with GCOL).

  • First two parameters: the X,Y coordinates of the circle’s centre.
  • Third parameter: the radius in pixels.
  • Fourth parameter: a boolean; if FALSE only the outline is drawn, if TRUE the circle is filled.

Circle outline example


Example: Outline
GCOL RGB(255,0,0)
CIRCLE 400, 300, 100, FALSE

Draws a red circle outline centred at (400,300) with radius 100.


Example: Filled
GCOL RGB(0,255,0)
CIRCLE 200, 200, 50, TRUE

Draws a filled green circle centred at (200,200) with radius 50.


Notes
  • Coordinates are in screen pixels; (0,0) is the top-left corner.
  • Circles are clipped at the screen edges if they extend beyond the display.
  • GCOL accepts a 24-bit RGB colour, usually constructed with RGB.

See also: GCOL, LINE, RECTANGLE