statement/CIRCLE statement/CIRCLE
NAME
CIRCLE -- Draws a circle, ellipse, arc, triangle or an octagon
ABBREVIATION
c <shift> I
SYNOPSIS
CIRCLE [<color_src>][,<x>,<y>],<x_radius>[,[<y_radius>][,[<s_angle>]
[,[<e_angle>][,[<rotation>][,<degrees>]]]]]
FUNCTION
With the CIRCLE command you can draw a circle, ellipse, arc, triangle or
an octagon. The final coordinate (Pixel Cursor location) is on the
circumference of the circle at the ending arc angle. Any rotation
(<rotation>) is about the centre. Arcs are drawn from the starting angle
(<s_angle>) clockwise to the ending angle (<e_angle>). The segment
increment (<degrees>) controls the coarseness of the shape, with lower
values for inc creating rounder shapes.
INPUTS
<color_src> - draw color source (0-3)
<x> - scaled centre x-coordinate (defaults to Pixel Cursor, PC)
<y> - scaled centre y-coordinate (defaults to Pixel Cursor, PC)
<x_radius> - scaled x radius
<y_radius> - scaled y radius (defaults to <x_radius>)
<s_angle> - starting arc angle (default 0)
<e_angle> - ending arc angle (default 360)
<rotation> - rotation in clockwise degrees (default is 0 degrees)
<degrees> - degrees between segments (default is 2 degrees)
RESULT
Draws a circle, ellipse, arc, triangle or an octagon.
EXAMPLES
CIRCLE,160,100,65,10
Draws an ellipse.
CIRCLE,160,100,65,50
Draws an oval.
CIRCLE,60,40,20,18,,,,45
Draws an octagon.
CIRCLE,260,40,20,,,,,90
Draws a diamond.
CIRCLE,60,140,20,18,,,,120
Draws a triangle.
NOTES
None
BUGS
None
SEE ALSO
BOX
DRAW
GRAPHIC
PAINT