Next Previous Contents

3.210 tgi_arc

Function

Draw an elliptic arc in the current color.

Header

tgi.h

Declaration

void __fastcall__ tgi_arc (int x, int y, unsigned char rx, unsigned char ry, unsigned sa, unsigned ea);

Description

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.

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

tgi_bar, tgi_circle, tgi_ellipse, tgi_pieslice, tgi_setcolor

Example

/* Draw the upper half of an ellipse */
tgi_setcolor(TGI_COLOR_BLUE);
tgi_arc (50, 50, 40, 20, 0, 180);


Next Previous Contents