Skip to content
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

Switch to a more accurate color vision deficiency simulation model #21

Open
nburrus opened this issue Oct 29, 2021 · 0 comments
Open

Switch to a more accurate color vision deficiency simulation model #21

nburrus opened this issue Oct 29, 2021 · 0 comments
Labels
enhancement New feature or request needs triage Issue that needs to be looked into and organized

Comments

@nburrus
Copy link

nburrus commented Oct 29, 2021

Hi! Recently I've been reviewing the CVD simulation models used in opensource software, and it turns out that the ColorMatrix values from colorjack.com are very inaccurate (I saw that these are the values used in color-blind-simulator).

I wrote a detailed article about that, but in short this is what the author later said about these matrices (links from MaPePeR, the code used by Coblis):

You're right, the ColorMatrix version is very simplified, and not accurate. I created that color matrix one night (http://www.colorjack.com/labs/colormatrix/) and since then it's shown up many places... I should probably take that page down before it spreads more! Anyways, it gives you an idea of what it might look like, but for the real thing...

So I've started a kind of crusade to help stop the spread :)

The good news is that there are pretty good alternatives that also just use a single 3x3 matrix and thus can be implemented with SVG filters. I've actually created a PR in another project that uses SVG filters Colorblindly that does just that. It updates the matrices to use the proven model of Viénot, Brettel & Mollon Digital video colourmaps for checking the legibility of displays by dichromats. And also importantly it adds a color-interpolation-filters="linearRGB" attribute to the filter so that the matrices get applied in the linearRGB space and not sRGB.

Hope this can help!

@nburrus nburrus added enhancement New feature or request needs triage Issue that needs to be looked into and organized labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage Issue that needs to be looked into and organized
Projects
None yet
Development

No branches or pull requests

1 participant