CIRCLE
Syntax
int_val = CIRCLE( x, y, r );
- Input arguments
-
float x, y The coordinates for the circle position. float r The radius of the circle.
Return Values
- Success:
-
int 0 Circle drawn successfully.
Description
This function draws a circle. Appearance is affected by the following attributes:
-
color
-
pen
CIRCLE and ARC can also be used to hatch faces, not only polylines, provided that the lines touch each other to complete the face.
Example
Copy
hatch_test( )
{
START_FACE();
POLY( -20, 0,
-50, 0,
-50, 50,
50, 50,
50, 0,
20, 0);
ARC( 20, 0,
0, 0, 180);
START_HOLE();
CIRCLE( 0, 40, 5);
style= 0; /* not used currently */
o_x = 0.0; /* not used currently */
o_y = 0.0; /* not used currently */
ang = 45.0;
spc = 2.0;
HATCH_FACE( style, o_x, o_y, ang, spc );
}