Draw an elliptic arc in the current color.
void __fastcall__ tgi_arc (int x, int y, unsigned char rx, unsigned char ry, unsigned sa, unsigned ea);
The function draws an elliptic arc with center at x/y and radii rx/ry using the current drawing color. The arc covers the angle between sa and ea (startangle and endangle), which must be in the range 0..360.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- The function behaves unexpectedly or may crash if the angles are out of range.
- See also
tgi_bar, tgi_circle, tgi_ellipse, tgi_pieslice, tgi_setcolor
/* Draw the upper half of an ellipse */ tgi_setcolor(TGI_COLOR_BLUE); tgi_arc (50, 50, 40, 20, 0, 180);