exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.01k stars 554 forks source link

How to use evenodd #655

Open Dem909 opened 4 years ago

Dem909 commented 4 years ago

Hello! I have a translucent Shape on the screen, which is at the top of all svg. I have cut on it a circle in a certain place (what would this place I saw non-dimmable). But also clip and mask just to cut my Shape, and not cut a hole in it :( Help, please, who faced with

ystrot commented 4 years ago

Hi Kirill,

That's how it done for SVG: https://stackoverflow.com/a/11878784

And it's similar for Macaw: just use path with a hole. You can make it evenodd using Path.fillRule = .evenodd