forma
forma copied to clipboard
SVG linearGradient `stop missing offset` error
<svg
viewBox="0 0 10 10"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="myGradient" gradientTransform="rotate(90)">
<stop offset="0" stop-color="gold" />
<stop offset=".58" stop-color="red" />
</linearGradient>
</defs>
<circle cx="5" cy="5" r="4" fill="url('#myGradient')" />
</svg>
thread 'main' panicked at 'stop missing offset', demo/src/demos/svg.rs:839:3
The SVG parser in forma is mostly for demo purposes. Replacing it with usvg will make it more useful.
usvg is great, do you have plans to migrate to usvg?