-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-color-4] Linear Bradford matrices are inexact #9607
Comments
Related: linear Bradford slightly better than CAT16 Correct reference for linear Bradford would be E.3 Linearized Bradford transformation in ICC.1-2022-05 |
Matrices fixed by 9c4db75 See https://github.com/LeaVerou/color.js/pull/354/files |
linear vs. original Bradford disambiguation fixed by 66a09e4 |
Is it possible that there was a copy/paste mistake here? - rgba(51, 102, 153, 0.8)
+ rgba(44, 111, 115, 0.8) This is more than what could be explained by slightly different rounding. |
Yes, see color-js/color.js#360 so I need to update again with these values. (I admit I was surprised by the magnitude of change in that matrix) |
Fixed by 5ae7930 |
From :
As pointed out here the inverse matrix in color.js uses rounded off values, and in fact the matrices in the specification were calculated using those rounded-off values
which produce small inaccuracies when round-tripping. These can accumulate to the point they introduce small, but visible, artifacts.
Also there are also two Bradford transforms: the original, given in the references section, and the linear simplification introduced by the ICC which is a simple 3x3 matrix.
The spec says "linear Bradford" in 11. Converting Colors and elsewhere just uses "Bradford"; that should be corrected for clarity.
The text was updated successfully, but these errors were encountered: