GrArcAngle()

Name

GrArcAngle() -- Draw an arc

Synopsis

void GrArc ( GR_DRAW_ID id , GR_GC_ID gc , GR_COORD x , GR_COORD y , GR_SIZE rx , GR_SIZE ry , GR_COORD angle1 , GR_COORD angle2 , int type );

Description

This function draws an arc on the specified drawable. The arc center is located at the position (x,y) with a horizontal radius of rx and a vertical radius of ry. The arc is drawn from angle angle1 to angle2.

Note

This function requires floating point and is slightly slower than the function GrArc(), which does not use floating point.

Parameters

TypeNameDescription
GR_DRAW_IDgcThe ID of the drawable to draw the arc onto.
GR_GC_IDidThe ID of the graphics context to use when drawing the arc.
GR_COORDxThe X coordinate to draw the arc at relative to the drawable.
GR_COORDyThe Y coordinate to to draw the arc at relative to the drawable.
GR_SIZErxThe radius of the arc along the X axis.
GR_SIZEryThe radius of the arc along the Y axis.
GR_COORDangle1The angle of the start of the arc in 1/64 degree increments. A value of 1920 (30*64) will start the arc at 30 degrees.
GR_COORDangle2The angle of the end of the arc in 1/64 degree increments. A value of 21120 (330*64) will end the arc at -30 degrees.
inttypeThe fill style to use when drawing the arc. See below for a list of the available arc types.

Arc Types

The following table lists the possible arc types that may used with this function.

Pixel FormatDescription
GR_ARCDraws just the arc.
GR_ARCOUTLINEDraws the arc with radius lines from the center to the endpoints. This results in a pie piece shaped outline.
GR_PIEDraws the arc with radius lines from the center to the endpoints. The resulting pie piece shaped outline is filled with the foreground color.

See Also

GrLine(), GrRect(), GrPoly(), GrEllipse(), GrArc().