Ejemplo n.º 1
0
Archivo: GD.php Proyecto: clee03/metal
 /**
  * @inheritdoc
  */
 public function polygon(array $points, $color, $filled = false)
 {
     if ($filled) {
         imagefilledpolygon($this->resource, $points, count($points) / 2, ImageColor::gdAllocate($this->resource, $color));
     } else {
         imagepolygon($this->resource, $points, count($points) / 2, ImageColor::gdAllocate($this->resource, $color));
     }
     return $this;
 }