Re: [csswg-drafts] [css-color-4] Linear transformation matrices are very slightly inaccurate (#7675)

You are correct that he doesn't show exactly how to calculate them, he only mentions:

> Depending on use case you might want to use the sRGB matrices your application uses directly instead of the ones provided here.

I'd have to try and dig up the thread here in the CSS issues where Björn Ottosson specified how to calculate the matrices, but the basic algorithm is here https://github.com/facelessuser/coloraide/blob/main/tools/calc_oklab_matrices.py.


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


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

Received on Friday, 2 September 2022 23:23:51 UTC