|
void bx_draw_arc |
( |
bx_window |
win, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned |
w, |
|
|
unsigned |
h, |
|
|
double |
angle, |
|
|
double |
dangle, |
|
|
int |
filled | |
|
) |
| | |
Draws an arc on the canvas of a window, that is a portion of an ellipse between two angles, and whose interior may be filled (to look as a pie slice) or left empty.
- Parameters:
-
| win | the window owning the targeted canvas. |
| x,y | the coordinates of the top left corner of the bounding box of the underlying ellipse of the arc. |
| w,h | the width and height of the bounding box of the underlying ellipse of the arc. |
| angle | the starting angle of the arc, expressed in degrees from the 3 o'clock position on the underlying ellipse of the arc. |
| dangle | the angle between the starting angle and the ending angle of the arc expressed in degrees |
| filled | whether theellipse is filled (non zero) or empty (zero) |
- Returns:
- nothing
|