-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
bugSomething isn't workingSomething isn't workingneeds-investigationMore investigation is necessary.More investigation is necessary.visualizeRelated to drawing and visualizations.Related to drawing and visualizations.
Description
Description
Consider
#curve(
curve.line((40pt, 40pt)),
stroke: gradient.linear(blue, red).sharp(2)
)Due to the sharp gradient, we expect a line that is half red and half blue but actually it is rendered
- entirely blue with
pngand - entirely red with
pdfandsvgexport.
The issue does not occur with
path#path( (0pt, 0pt), (40pt, 40pt), stroke: gradient.linear(blue, red).sharp(2) )
- when using a
curve.quadorcurve.cubicelement, e.g.,#curve( curve.quad(none, (40pt, 40pt)), stroke: gradient.linear(blue, red).sharp(2) )
Note that this has nothing to do with sharp gradients, they are just better to demonstrate the issue.
Reproduction URL
No response
Operating system
No response
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-investigationMore investigation is necessary.More investigation is necessary.visualizeRelated to drawing and visualizations.Related to drawing and visualizations.