Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking to accomplish "reverse" clip #532

Open
theresia-tobii opened this issue Oct 16, 2022 · 0 comments
Open

Looking to accomplish "reverse" clip #532

theresia-tobii opened this issue Oct 16, 2022 · 0 comments
Labels
question Further information is requested

Comments

@theresia-tobii
Copy link

theresia-tobii commented Oct 16, 2022

In skia for instance, it's possible to accomplish a reverse clip meaning that the clip area is not used as an intersection, but as a subtraction instead. This is useful when trying to accomplish more graphical features such as rendering strokes with outside alignment (default is centered, inner alignment can be accomplished by doubling the stroke width and using the shape as clip shape, but outer alignment requires inverse clipping). I have tried without success to accomplish this in piet. Is this something we can add? Can this be done by allowing the clip shape to use an even-odd fill rule? I am using druid on windows so I assume I am using the d2d backend. It specifies nonzero as fill rule which seems wrong.

@xStrom xStrom added the question Further information is requested label Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants