- Function
Draw an elliptic pie slice in the current color.
- Header
- Declaration
void __fastcall__ tgi_pie slice (int x, int y, unsigned char rx, unsigned char ry, unsigned sa, unsigned ea);
- Description
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.
- Limits
- 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.
- Availability
cc65
- See also
- Example
/* Draw the closed upper half of an ellipse */ tgi_setcolor(TGI_COLOR_BLUE); tgi_pieslice (50, 50, 40, 20, 0, 180);