Just another Perl shrine | |
PerlMonks |
Re: CPAN Module for Normalizing to Green-Yellow-Red Color Scheme?by ww (Archbishop) |
on May 07, 2010 at 00:07 UTC ( [id://838812]=note: print w/replies, xml ) | Need Help?? |
At least for this US reader, you have your traffic light upside down.
;-) But, more seriously, you could make your life easier if you used Red-Greeen-Blue for your range. Red-Yellow-Green just doesn't work even for your range of 10 possibilities; never mind for 100 (and certainly not for 100 distinguishable, web-safe colors. You may find some useful ideas (albeit, neither modules nor even code snippets) at this academic (UIUC) site. In addition, Wikipedia has an interesting item on color theory, including this which is particularly relevant to your question, identifying as a "problem"...
Update: Fixed the (badly borked) markup.
In Section
Seekers of Perl Wisdom
|
|