Dompdf\Canvas::polygon
Draws a polygon
The polygon is formed by joining all the points stored in the $points array. $points has the following structure: <code> array(0 => x1, 1 => y1, 2 => x2, 3 => y2, ... ); </code> See for the format of the color array. See for a description of the $style parameter (aka dash)
Signature
public function polygon(array
$points,
array
$color,
[float
$width = NULL,
[array
$style = NULL,
[boolean
$fill = false]]] )
Parameters
$points
— array$color
— array$width
— float$style
— array$fill
— boolean- Fills the polygon if true