Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Convert shape's stroke into a filled shape

Open Keavon opened this issue 2 years ago • 2 comments

There should be a button that can be used to convert the selected shape layer(s) into layers which have a stroke converted into a filled shape (probably with negative space inside). If the starting layer has both a fill and a shape, this should become a folder containing one layer for a shape with just the original fill and another layer with just the shape for the original stroke.

This may require an algorithm for converting a stroke into a filled shape if our libraries don't provide such a capability.

Keavon avatar Apr 21 '22 21:04 Keavon

There should be a button that can be used to convert the selected shape layer(s) into layers which have a stroke converted into a filled shape

@Keavon Can you not just toggle the fill colour and (if you want) disable the stroke colour?

If the starting layer has both a fill and a shape, this should become a folder containing one layer for a shape with just the original fill and another layer with just the shape for the original stroke.

This seems a bit useless - can't you just duplicate the layer and disable the stroke on one and disable the fill on the other and then group them?

0HyperCube avatar Apr 22 '22 07:04 0HyperCube

The purpose is to edit the stroke as a bezier curve. Frequently when doing vector art, you will start with a stroke then turn it into its own filled shape layer and edit it. If that original shape had both a stroke and a fill, you'll want them both separated (since they are both their own separate shape layers now).

Keavon avatar Apr 22 '22 07:04 Keavon

Blocked on full shape-based curve expansion including caps and joins in our bezier-rs library.

Keavon avatar Nov 05 '22 00:11 Keavon

Duplicate of #1092

0HyperCube avatar Dec 04 '23 22:12 0HyperCube