Re: [csswg-drafts] [css-color] gray() function produces a warm, D50 white (#4622)

> If you want to short circuit it and avoid stray rounding errors you could explicitly implement a univariate function taking in L* and spitting out three identical values for sRGB. 

To be explicit, you can first convert L* to XYZ Y (still D50 whitepoint), then you can combine the steps of taking Y -> XYZ, i.e. Y -> [0.34567Y / 0.35850, Y, 0.29583Y / 0.35850], whatever chromatic adaptation matrix you like, and a conversion from XYZ -> RGB; this can be distilled down to a single scalar to multiply by the D50 Y value to get the D65 RGB values. Finally you can apply your RGB gamma function.

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

Received on Tuesday, 24 December 2019 04:03:37 UTC