Filled and Not-filled Paths

Hi! Can I ask how to fill reversed paths with “no fill”? I know layer.bezierPaths.fill() does the trick, but I don’t need the whole layer, only some paths.
I have

NSColor.grayColor().colorWithAlphaComponent_(0.3).set()
if path.direction == -1:
   path.bezierPath.fill()

Which of course doesn’t exclude the inner part:

Thank you!

Add the bezier paths all to one extra NSBezierPath and draw that after the loop.

1 Like