views:

485

answers:

5

My father is color blind and given that I work in games where the visuals are important, I've always wanted to write a filter for screen shots (or even some type of shader) that emulated different forms of color blindness.

I've seen plenty of references but never have been able to track down algorithms.

Any algorithms would be appreciated.

+1  A: 

Can't help you on algorithms, but the following article was quite an eye-opener (excuse the pun): http://critiquewall.com/2007/12/10/blindness.

Ah, actually, http://www.vischeck.com/ is useful.

benefactual
Vischeck is definately a good resource for color-blindness and computing
Branan
The vischeck stuff is good. I'll have to check out the info stuff. I've looked at their site before, but I don't remember the info page. Maybe I just missed it.
Torlack
+1  A: 

Google came up with a number of links, perhaps one provides source or algorithm descriptions: http://www.google.com/search?hl=en&q=simulating+color+blindness&aq=f&oq=

Edit: Thanks Torlack for pointing out that everybody knows about Google. But using Google effectively requires using the proper search terms, and good search terms aren't always obvious. Judging by the returned page titles and a couple of the links, this particular search seemed highly relevant. I don't think it was a bad enough answer for a downvote.

Mark Ransom
Pointing out that google exists doesn't exactly help.
Torlack
Ok, I took it back.
Torlack
+4  A: 

My Google search came up with this one, which appears to be exactly what you're looking for. Eight different versions of color blindness are simulated by multiplying each of the R,G,B values by 3 different percentages and adding them together.

http://www.colorjack.com/labs/colormatrix/

Mark Ransom
Thank you very much. About six months ago I looked and I looked and never could find that data.
Torlack
A: 

The colorjack link has good info, but I use http://colorfilter.wickline.org/. It can check a whole page: images, CSS colors and all.

A: 

I came across Color Oracle and thought it might help. Here is the short description:

Color Oracle is a colorblindness simulator for Windows, Mac and Linux. It takes the guesswork out of designing for color blindness by showing you in real time what people with common color vision impairments will see.

Greg Hewgill