Skip to content

Commit

Permalink
Fix drawPolygon method
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck ALARY committed May 24, 2022
1 parent 22207e7 commit 98985fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,13 @@ public function drawPolygon(array $points, string $color = '#000000', $antialias
\imageantialias($this->image, true);
\imagepolygon($this->image, $points, \count($points) / 2, $color);
}

\imagefilledpolygon($this->image, $points, \count($points) / 2, $color);

if($antialias) {
\imageantialias($this->image, false);
}

return $this;
}

Expand Down

0 comments on commit 98985fa

Please sign in to comment.