nical / lyon

2D graphics rendering on the GPU in rust using path tessellation.
Other
2.35k stars 144 forks source link

Feature Request: Align Stroke a la Adobe Illustrator #916

Open phrohdoh opened 3 months ago

phrohdoh commented 3 months ago

https://helpx.adobe.com/illustrator/using/stroke-object.html

share_730305636402681173.png

nical commented 3 months ago

You can already do something like that by implementing your own StrokeVertexConstructor or StrokeGeometryBuilder. The provided StrokeVertex has a position_on_path, which you can move along itsnormaldepending on theside`.