feedback
This commit is contained in:
parent
e5cccb63d1
commit
b57da6d14c
2 changed files with 7 additions and 1 deletions
|
@ -89,7 +89,7 @@ proc gradientPut(
|
||||||
gs2.color,
|
gs2.color,
|
||||||
(t - gs1.position) / (gs2.position - gs1.position)
|
(t - gs1.position) / (gs2.position - gs1.position)
|
||||||
)
|
)
|
||||||
if paint.opacity != 0:
|
if paint.opacity != 1:
|
||||||
color = color.applyOpacity(paint.opacity)
|
color = color.applyOpacity(paint.opacity)
|
||||||
image.setRgbaUnsafe(x, y, color.rgba.rgbx())
|
image.setRgbaUnsafe(x, y, color.rgba.rgbx())
|
||||||
|
|
||||||
|
|
|
@ -1798,6 +1798,9 @@ proc fillPath*(
|
||||||
|
|
||||||
mask.fillPath(path, transform, windingRule)
|
mask.fillPath(path, transform, windingRule)
|
||||||
|
|
||||||
|
# Draw the image (maybe tiled) or gradients. Do this with opaque paint and
|
||||||
|
# and then apply the paint's opacity to the mask.
|
||||||
|
|
||||||
var paintOpaque = paint
|
var paintOpaque = paint
|
||||||
paintOpaque.opacity = 1
|
paintOpaque.opacity = 1
|
||||||
|
|
||||||
|
@ -1890,6 +1893,9 @@ proc strokePath*(
|
||||||
dashes
|
dashes
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Draw the image (maybe tiled) or gradients. Do this with opaque paint and
|
||||||
|
# and then apply the paint's opacity to the mask.
|
||||||
|
|
||||||
var paintOpaque = paint
|
var paintOpaque = paint
|
||||||
paintOpaque.opacity = 1
|
paintOpaque.opacity = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue