This commit is contained in:
Ryan Oldenburg 2021-06-03 00:07:41 -05:00
parent 4096ed585a
commit 57ab45f7a1
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
version = "2.0.3"
version = "2.0.4"
author = "Andre von Houck and Ryan Oldenburg"
description = "Full-featured 2d graphics library for Nim."
license = "MIT"

View file

@ -1562,7 +1562,7 @@ proc fillPath*(
) =
## Fills a path.
if paint.kind == pkSolid:
if paint.color.a > 0:
if paint.color.a > 0 or paint.blendMode == bmOverwrite:
var shapes = parseSomePath(path, transform.pixelScale())
shapes.transform(transform)
image.fillShapes(shapes, paint.color, windingRule, paint.blendMode)
@ -1626,7 +1626,7 @@ proc strokePath*(
) =
## Strokes a path.
if paint.kind == pkSolid:
if paint.color.a > 0:
if paint.color.a > 0 or paint.blendMode == bmOverwrite:
var strokeShapes = strokeShapes(
parseSomePath(path, transform.pixelScale()),
strokeWidth,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB