4 ms·
I find that gradient are really badly handled usually in svg softwares, I hope this can improve it. In inkscape you can make only a one direction gradient, nev
by somethingsome 1y ago
I find that gradient are really badly handled usually in svg softwares, I hope this can improve it.
In inkscape you can make only a one direction gradient, never a gradient with more than 2 points, I don't know if it is a limitation of the format itself.
Also when you have multiple gradients in one file, the software becomes extremely slow. And they don't mix correctly when overlapped with transparency.
It seems a low hanging fruit to optimize that, but I guess there is little traction
- cycomanic 1y agoI don't quite understand what you mean. Are you talking about color points, you can add many different ones in inks ape (the UI of the gradient tool is admittedly quite bad though). Or do you mean a sort of double gradient, i.e. if goes from red to blue from left to right, but from opaque to transparent from top to bottom? I never had to use such a gradient, so not sure if it's possible.
- somethingsome 1y agoTake a triangle, put a different color on each vertex, tri-interpolate
- brulard 1y agoThis is not supported in SVG. There was a Mesh Gradient feature planned for SVG v2.0, but AFAIK that was removed from the draft. It's a shame. Here is an article discussing that. (2018, mind you) https://librearts.org/2018/05/gradient-meshes-and-hatching-to-be-removed-from-svg-2-0/ https://librearts.org/2018/05/gradient-meshes-and-hatching-t... EDIT: I assumed this is SVG renderer, but now i think it may not be bound by SVG limitations.
- KeplerBoy 1y agoDo you mean a curved gradient as in a rainbow?
- somethingsome 1y agoOh that could be useful as well!
- LegionMammal978 1y agoAt least that can be done in SVG with a radial gradient (I don't know whether Inkscape exposes it). But for anything more complex than an ellipse, you're out of luck, short of something like a filter effect, which will be very heavyweight and also inconsistent across browsers.