imagefilledpolygon() creates a filled polygon
in the given image
.
image
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
points
An array containing the x and y coordinates of the polygons vertices consecutively
num_points
Total number of vertices, which must be bigger than 3
color
A color identifier created with imagecolorallocate()