You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this for info about how to approximate this. We can also just split up the stroke into a lot of pieces with solids colors, or with linear gradients aiming to go from the start to end, using greater subdivision where the start and end planes bend more quickly to aim for them to be close to parallel so the linear gradient works.
Across the stroke
Repeat the stroke many times with increasing thickness. Use the technique described in Stroke alignment #2268 for not mirroring at the centerline.
Regardless of method or direction, masking is likely necessary to handle end caps properly.
Activity
krVatsal commentedon Apr 1, 2026
Useful reference for mesh gradient rendering and the SVG spec: http://tavmjong.free.fr/SVG/MESH/Mesh.html
[-]Gradients along strokes[/-][+]Along-stroke/across-stroke gradients[/+][-]Along-stroke/across-stroke gradients[/-][+]Along/across-stroke gradients[/+]