Mobile app version of vmapp.org
Login or Join
Shelley591

: Bucket-fill whole selection rectangle in Inkscape Consider sample Bézier curve with a red stroke: Now, I want to paint the background of the whole selection area. Like this: Is there a straight-forward

@Shelley591

Posted in: #Inkscape

Consider sample Bézier curve with a red stroke:



Now, I want to paint the background of the whole selection area.
Like this:



Is there a straight-forward way of achieving this?

This is what I get using standard fill option:




I've created the mockup by creating a rectangle with the same dimensions as the curve, then aligning and grouping the two.
Perhaps it's the only way.

However, I don't quite like edges not aligning perfectly in case of a thicker stroke:



Furthermore, I thought that the approach with rectangle is workaround-ish and does not produce accurate and scalable result. It does.
Explained in my comment to @user287001 's answer.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley591

2 Comments

Sorted by latest first Latest Oldest Best

 

@Miguel516

You can use a rectangle with a border in the same color as the filling color and choose, as contur width, the same width as the Beziers contour width.

If you later change the width of the Bezier curves contour, you just have to change the rectangles contour to the same value.

10% popularity Vote Up Vote Down


 

@Sarah814

No use to think other ways, if your mockup gives the wanted visual result and the problem is nothing more than visual. Make a group to keep the rectangle and the curve together when moving, rotating or scaling. Recoloring needs a separation.

ADDENDUM due the comment and edit in the question:

To fit the ends of the curve perfectly draw a little longer curve. Make a clipping mask.

Alternatively convert your curve to a filled area and edit its control points. See an example:



NOTE: the size and the position of the added rectangle are NOT approximate, if you


at first copy your curve to the clipboard
select the rectangle and paste the size onto it from the clipboard
select both and align them with the Object > Align & Distribute -tool.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme