0

In Inkscape v1.1 on Ubuntu, I can apply a mesh gradient to an object's fill. Cool! However, even when I set the color for all the node handles in the mesh, I still get what I can only describe as "hotspots": places where the mesh gradient doesn't seem to be responding to the colors that I've set.

Hexagon with a rainbow gradient mesh. Some of the gradients incorporate colors not set in the mesh.

In this example, for instance, the three-pointed purple flare at the center (and stretching out along the yellow segment) baffles me. The color of the center point is set to white. The two handles along the yellow edge are both set to the same yellow, and the two handles along the green edge are set to the same green. I can see no place where that purple is defined in the mesh gradient, at least using the graphical controls given to me. And yet, it's present.

What is causing these problems with the mesh gradient, and how can I fix them so that colors transition smoothly throughout the entire mesh, and there are no "hotspots" of colors not defined by the mesh?

2

This is difficult to resolve because of the way meshes are constructed, making it a rather tricky edit.

If you pull apart the mesh, you will discover that there are in fact seven overlapping stops in the centre, and two additional overlapping stops where the mesh meets itself.

So, to fix it you'd need to select those stops, recolour them, then put it all back together again.

Example

enter image description here

2
  • Oh, wow, that's really obnoxious and seems to introduce a lot of imprecision. Bummer. Thanks for the answer, though! – SpencerDub Jun 22 at 17:19
  • @SpencerDub There are ways to deal with the imprecision, for example placing a guide to mark the centre, and snapping to the guide for moving the stops back on top of each other. It's definitely tricky though. – Billy Kerr Jun 22 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.