Draw an elliptic pie slice in the current color.
void __fastcall__ tgi_pie slice (int x, int y, unsigned char rx, unsigned char ry, unsigned sa, unsigned ea);
The function draws an elliptic pie slice with center at x/y and radii rx/ry using the current drawing color. The pie slice 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_arc, tgi_bar, tgi_circle, tgi_ellipse, tgi_setcolor
/* Draw the closed upper half of an ellipse */ tgi_setcolor(TGI_COLOR_BLUE); tgi_pieslice (50, 50, 40, 20, 0, 180);