Home
Using drawPolygon() and fillPolygon() method
void drawPolygon(int x[ ], int y[ ], int numPoints)
void fillPolygon(int x[ ], int y[ ], int numPoints)
Here is an example code to draw a polygon
Next