pieslice() draws and fills a pie slice with center at (x, y) and given radius r. The slice travels from s_angle to e_angle which are starting and ending angles for the pie slice. The angles for pie-slice are given in degrees and are measured counterclockwise.
void pieslice(int x, int y, int s_angle,
int e_angle, int r);
(x, y) is center of the circle.
r is the radius of the circle.
s_angle and e_angle are the starting
and ending angles respectively.
Input : x = 300, y = 300, s_angle = 0 ,
e_angle = 120, r = 150
Input : x = 300, y = 300, s_angle = 30 ,
e_angle = 100, r = 200
Below is the implementation for the pieslice() function:
gd = DETECT, gm;
pieslice(300, 300, 0, 120, 150);