Mobile app version of vmapp.org
Login or Join
Cooney243

: How do I give a stroke knockout transparency in Inkscape? Ok, I'll admit, this is a really weird question. What I'm trying to do is have a transparent stroke. By that, I mean that the stroke

@Cooney243

Posted in: #Inkscape #Stroke #Transparency

Ok, I'll admit, this is a really weird question.

What I'm trying to do is have a transparent stroke. By that, I mean that the stroke takes up space, but it's showing what's behind the object.

When I set the stroke alpha down to 0, it turns the same color as the fill, which isn't what I want.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney243

2 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes874

An obvious solution is to have two copies - one with only the fill and one with only the stroke. Resizing the fill to smaller should do the job. But proportional shrinking gives perfect result only in rare cases. The result can be accurate enough if the shape is convex and the stroke is narrow. Non-convex shape with a heavy stroke needs more complex tinkering. See the following cartoon:

10% popularity Vote Up Vote Down


 

@Cooney243

Haha, I love it when I solve a problem three minutes after asking online. ;)

I just had to scale-resize the object to it's size minus half the stroke and remove the stroke. e.g. with an object 80 pixels high and 40 pixels wide, with a 4 pixel stroke, go to Object -> Transform, and use 78 for the height (80 - 4/2 = 78) and 38 for the width (40 - 4/2 = 38). Then you just remove the stroke.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme