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.
![]() | This function requires floating point and is slightly slower than the function GrArc(), which does not use floating point. |
Type | Name | Description |
---|---|---|
GR_DRAW_ID | gc | The ID of the drawable to draw the arc onto. |
GR_GC_ID | id | The ID of the graphics context to use when drawing the arc. |
GR_COORD | x | The X coordinate to draw the arc at relative to the drawable. |
GR_COORD | y | The Y coordinate to to draw the arc at relative to the drawable. |
GR_SIZE | rx | The radius of the arc along the X axis. |
GR_SIZE | ry | The radius of the arc along the Y axis. |
GR_COORD | angle1 | The 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_COORD | angle2 | The 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. |
int | type | The fill style to use when drawing the arc. See below for a list of the available arc types. |
The following table lists the possible arc types that may used with this function.
Pixel Format | Description |
---|---|
GR_ARC | Draws just the arc. |
GR_ARCOUTLINE | Draws the arc with radius lines from the center to the endpoints. This results in a pie piece shaped outline. |
GR_PIE | Draws the arc with radius lines from the center to the endpoints. The resulting pie piece shaped outline is filled with the foreground color. |