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

>  Outside of a completely new space for the purpose, n-color mixing needs to be a cascade, where we only mix two colors at any one time.

Yes, that is also the conclusion the editors came to.

I dud look into how 3D graphics handles a three-way color interpolation (for example, flat-shading a triangular mesh where each vertex has a color, and vertex normals are ignored). The algorithm proceeds by picking two colors, and interpolating them to produce the gradient along one edge. Then there is a second, again two-color interpolation step where the third color is interpolated with the color of a particular point along the gradient. So, two cascaded two-color interpolations.

So I think we can close this issue.

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


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

Received on Tuesday, 2 March 2021 15:06:38 UTC