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

[css-masking-1] Add destination-out for mask-composite #488

Open
Azmisov opened this issue Jan 24, 2023 · 0 comments
Open

[css-masking-1] Add destination-out for mask-composite #488

Azmisov opened this issue Jan 24, 2023 · 0 comments

Comments

@Azmisov
Copy link

Azmisov commented Jan 24, 2023

(A+B)-C mask operation I have found is quite useful (destination-out), but it is the only one of the relevant alpha Porter-Duff composite operations that was not included in the spec. E.g. I want to subtract a mask from both A and B.

  • add = source-over/destination-over (commutative)
  • subtract = source-out
  • intersect = source-in/destination-in (commutative)
  • exclude = xor

Note the lack of an equivalent destination-out operation.

I can't think of a way to simulate it with existing operations (add, subtract, intersect, exclude).

@Azmisov Azmisov changed the title Add destination-out for mask-composite [css-masking-1] [css-masking-1] Add destination-out for mask-composite Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant