nical / lyon

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

Feature Request: Align Stroke a la Adobe Illustrator #916

Open phrohdoh opened 3 weeks ago

phrohdoh commented 3 weeks ago

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

share_730305636402681173.png

nical commented 2 weeks 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`.