pieslice() function is just like the arc() function of graphics.h header file but there is one basic difference between both the functions that is arc() is a function which does not fill anything and just draw the arc with start angle and end angle but in other side pieslice() is a function which is used to fill the color in the pieslice. You can do so with setfillstyle() function.
- pieslice() function contains five parameter that are X-coordinate, Y coordinate, start angle, end angle and radius of the pieslice.
- One can also draw a circle by using pieslice() function for this start angle must be 0 and end end angle must be 360.Parameter string specifies the string which is going to be display on the screen.
- For better understanding go through the program:
int gd=DETECT, gm;