polygon — Draw a polygon
Draw a colored polygon with given points. You can define the appearance of the polygon by an optional closure callback.
Points of the polygon defined by a single-dimensional array alternating x, y points. See examples below.
callback (optional)
background
Define the background-color of the polygon in one of the available color formats.
border
Define the border of the polygon. Set width as pixels in the first and the border-color in one of the available color formats as second parameter.
Instance of Intervention\Image\Image