This commit is contained in:
Ryan Oldenburg 2021-02-22 18:39:27 -06:00
parent dbe17be7cc
commit 6cb2491825

View file

@ -247,12 +247,7 @@ proc fillPolygon*(
path.polygon(pos, size, sides)
image.fillPath(path, color)
proc fillPolygon*(
mask: Mask,
pos: Vec2,
size: float32,
sides: int
) =
proc fillPolygon*(mask: Mask, pos: Vec2, size: float32, sides: int) =
var path: Path
path.polygon(pos, size, sides)
mask.fillPath(path)