Skip to content

Commit 98985fa

Browse files
committed
Fix drawPolygon method
1 parent 22207e7 commit 98985fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Image.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,13 @@ public function drawPolygon(array $points, string $color = '#000000', $antialias
961961
\imageantialias($this->image, true);
962962
\imagepolygon($this->image, $points, \count($points) / 2, $color);
963963
}
964+
964965
\imagefilledpolygon($this->image, $points, \count($points) / 2, $color);
965966

967+
if($antialias) {
968+
\imageantialias($this->image, false);
969+
}
970+
966971
return $this;
967972
}
968973

0 commit comments

Comments
 (0)