diff --git a/pixie.nimble b/pixie.nimble index e163b28..512aea1 100644 --- a/pixie.nimble +++ b/pixie.nimble @@ -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" diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index a379113..573ac68 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -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, diff --git a/tests/images/context/clearRect_1.png b/tests/images/context/clearRect_1.png index 80156ec..994056e 100644 Binary files a/tests/images/context/clearRect_1.png and b/tests/images/context/clearRect_1.png differ