Closed mrd0ll4r closed 4 years ago
Figured it out, here are two adjacent frames:
LineJoin is always Miter. What you're seeing an artifact of the line thickness. This is an animation of your frame 0 increasing in thickness.
lyon chose to do this for compatibility with SVG.
I've changed the line join to MiterClip, but it still reverts to bevel. I filed a lyon issue. We'll see if the issue is there, here, or some unique attribute of this path.
The MiterClip change is in the new version on crates.io and lyon has published a fix as well. Thank you for reporting the issue!
Thanks! :)
Hey, super cool project! I'm coming from Processing and wanted to try this out since I've mostly switched to Rust for everyday stuff.
I wrote a tiny program that draws a few bezier curves and displaces the control points. I noticed that the stroke join at the tip of the resulting triangle changes between MITER and BEVEL (that's what processing calls them, sorry, only way I know to describe it).
This is the code I'm using, I'll also try to attach a few images to show what I mean:
EDIT: I'm running this on Windows with an NVIDIA GPU, if that helps. Happy to provide more info or try out stuff!