Re: [csswg-drafts] [css-color-5] How should negative percentages behave in color-mix()? (#6047)

I think negative mixing does make conceptual sense. Sometimes it can be more intuitive. For instance, if I had a purple, and I thought that purple looked too red, you could subtract a portion of the red until you were happy. This is quite a bit different than just decreasing the red channel, which will only decrease the red, but not increase the blue portion. This is actually using the algorithm described in the spec:

<img width="621" alt="Screen Shot 2021-03-10 at 12 19 38 PM" src="https://user-images.githubusercontent.com/1055125/110685280-5885a680-819b-11eb-987a-89b6edd3c606.png">

It's really like the inverse of the mix. If we crank it up, we get blue (for the most part due to rounding stuff and such 🙂).

<img width="620" alt="Screen Shot 2021-03-10 at 12 29 33 PM" src="https://user-images.githubusercontent.com/1055125/110686735-f9c12c80-819c-11eb-92be-d4837e92a690.png">

But yeah, when `p1 + p2 = 0`, I'm not sure what that should be 🤷.





-- 
GitHub Notification of comment by facelessuser
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6047#issuecomment-795970287 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 March 2021 19:37:41 UTC