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

Forgive me, the SRGBL_TO_LMS conversion (for Okhsl and Okhsv) needs it, not the XYZ to LMS conversion 🤦🏻.

With that said, this whole step, if using rational numbers, can be improved:

```
XYZ_TO_LMS = alg.divide(M0, alg.outer(alg.dot(M0, xyzt.white_d65), alg.ones(3)))
```

Now, I am currently a bit skeptical as to how much a difference this will help in the end as the differences are so far out (in decimal places), and most color spaces when being developed don't even bother going through this effort either, but I don't think is bad either. I'm just not sure in real-world cases whether the ever slightly better matrices will be noticed 🙂 .


-- 
GitHub Notification of comment by facelessuser
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7675#issuecomment-1235982899 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:45:49 UTC