: 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
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.
More posts by @Cooney243
2 Comments
Sorted by latest first Latest Oldest Best
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:
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.