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); where, (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 Output : Input : x = 300, y = 300, s_angle = 30 , e_angle = 100, r = 200 Output :
Below is the implementation for the pieslice() function:
- arc function in C
- strlwr() function in C
- Inline function in C
- putchar() function in C
- ldexp() function in C/C++
- iswblank() function in C/C++
- gmtime() Function in C/C++
- iswpunct() function in C/C++
- wcstoll() function in C/C++
- iswalnum() function in C++ STL
- raise() function in C++
- feupdateenv() function in C++
- exp2() function in C++ STL
- towupper() function in C/C++
- iswspace() function in C/C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.