Skip to content

Looking to accomplish "reverse" clip #532

@theresia-tobii

Description

@theresia-tobii

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions