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