Professional Documents
Culture Documents
Fillpoly Function in C
Fillpoly Function in C
Concept
Now the header file graphics.h contains fillpoly() function which is implemented to draw and fill a
polygon such as triangle, rectangle, pentagon, hexagon etc. So this function require same
arguments as drawpoly().
Syntax
void fillpoly( int number, int *polypoints );
Input
Output
Explanation
#include <graphics.h>
// driver code
intmain(){
// Here gm1 is Graphics mode which is a computer display mode that
fillpoly(4, arr1);
getch();
closegraph();
return0;
Output