Conical Gradient Editing

Inkscape has the ability to make conical gradients, but the functionality is hidden behind horrendous Mesh Gradient API.

Existing UX for gradient editing

Screenshot_from_2025-11-07_15-34-21

The mesh gradient on canvas nodes are shown as a folded 2d grid. This is effectively the same editing nodes as for the 2d grid mesh, with no specialization for the canonical gradient mesh type.

When this mesh gradient is selected, there is no editability in the fill and stroke dialog at all. It is an empty dialog with a single selector to select a different mesh.

Proposed Conical Gradient Editing

Screenshot_from_2025-11-07_15-43-25

In this proposal we instead focus on editing the gradient on canvas in terms of arms and rings. But default a conical gradient would have a single ring and as many arms as gradient stops in the gradient definition.

Each arm can be positioned radially anywhere around the circle shape and this represents the gradient stop offsets.

The first arm, arm0, can be pulled out and in to indicate the total radius. No control is left for making the conical an ellipse other than transforming a circle, an alternative design might let you define the ellipse somehow perhaps similar to the circular gradient.

Proposed Conical Gradient Dialog

This would be basically the same as the circular gradient. But for each ring (mesh row) it would edit it as it's own gradient. But the offsets would be linked together so moving any of them would move their sibling offsets in other rings.

Screenshot_from_2025-11-07_15-34-32

The mesh is stored as a 2d grid of stops, for single ring gradients we would duplicate the gradient stops populating rows 1 and 2. So a new inkscape specific editing attribute would be needed to specify if the conical gradient is 1 or >1 so we know how to edit it. In the case of a 1 ring conical gradient we just ignore the second row of colors as we expect them to be the same.

Instead of using the mesh gradient button, we use a new conical gradient button in the top bar (not shown in these mockups). We would need new icons here.

Other attributes

It might be necessary to store the radii and other editable components so the mesh structure can be calculated correctly. This would make the mesh gradient properly editable as a conical gradient and not just a squashed grid mesh.

Translation between gradients

It should be possible to translate the gradient into a radial gradient and back. It could take the radius information as well as the first row of colors, into and back from the mesh.