2.0.4
This commit is contained in:
parent
4096ed585a
commit
57ab45f7a1
|
@ -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"
|
||||
|
|
|
@ -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 |
Loading…
Reference in a new issue