Re: [csswg-drafts] [css-color-5] color-mix to allow more than two colors? (#4711)

Just a thought that might simplify implementation:

What if `color-mix` only took 2 colors and a percentage for the mixing? 

i.e. if `color-mix(red 60%, blue)` means 60% red and 40% blue, then:

`color-mix(color-mix(red 60%, blue), pink 40%)` means 60% of the total is a mixture of 60% red and 40% blue, the rest of 40% pink. Overall values would be: 36% red, 24% blue, 40% pink.

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

Received on Monday, 6 July 2020 20:41:37 UTC