Inkscape - transparent fill, but still occlude paths below it


I'm doing line art in Inkscape. For the sake of saneness, I need the fill of a path to occlude paths beneath it, so I just fill everything with white.

However, while exporting to a bitmap, I don't want the fills to actually be white - I just want to export the lines, with no fills.

Here's a example:

With fills:


no fills:

no fills

what I want:

what I want

I know I can replace the white with transparent in other software, but often the results are not perfect (antialiasing results in white fringing).

I also know this can be done with boolean operations on the paths, but it's not really feasible for complex work, and destroys information in the process.

4/13/2017 12:46:00 PM

You cannot have a background color at the same time transparent and not transparent.

In your example, you have two objects layered one on each other, and a possible background, let's say a, b and bg:

two filled objects

When you remove the fill of the top object (b, in the example), you see directly a portion of the other object, and precisely the intersection of a and b:

the top object is not filled

To get rid of the intersection and see directly the background, the only way is modify the lower object using boolean operations:

a new lower object

10/14/2016 8:41:00 PM