Re: maximizing keyboard label contrast Message #2 Posted by Gene on 6 Mar 2005, 9:29 p.m., in response to message #1 by Hugh Evans
Well, I don't know if I'd call it an algorithm.
But, what I did at HHC2004 was to measure the color of the background and the color of the function on the background using the built-in windows paint program, which gave the color a score on RGB of 0-255 for each color.
I then did a variation of the distance between two points by :
SquareRoot of ( (R1 - R2)^2 + (G1 - G2)^2 + (B1-B2)^2 )
which gives a score of 0 (for the same color) up to about 440 for black and white.
Scores above 200 seem to provide good contrast when shown to people.
There is a link somewhere to my powerpoint presentation from HHC2004, but I dont' have it handy. It would either be at the HHC2004 website or on Jake Schwartz' site.
|