Re: [csswg-drafts] [css-colors-4] Clarify whether RGB is additive or not (#9977)

Right, that is sloppy.

But to restore the parts you clipped out

> An additive color space means that the coordinate system is linear in light intensity.
> In an additive color space, calculations can be done to accurately predict color mixing. 

These are correct.

> Most RGB spaces are not additive, because the components are gamma encoded. Undoing this gamma encoding produces linear-light values.

This is also correct.

> RGB color spaces are additive, 

Should be

> Thus, linearized RGB color spaces are additive, 

By the way, you say

>  I guess most RGB color spaces are not linear, but they are all additive.

Not by the formal definition (accurate prediction of the color of mixed light); only by the fairy tale definition of "light is additive, pigment is subtractive, cyan = 1 - red" and so on which is wrong in so many ways. It is sadly common (including in older CSS and SVG specifications, and in the definitions of HSL and HWB) to do arithmetic on gamma-encoded RGB values; and the results from such calculations are incorrect in that they fail to predict the resulting color.

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


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

Received on Tuesday, 20 February 2024 16:32:40 UTC