Re: OT raibow



On Fri, 30 Nov 2007 18:39:35 +0100, Petr Vileta wrote:

My question is not perl specific but here are many clever people :-) I
want to generate html <select> object with all "safe" colors but in
rainbow order (from white over yellow, red upt to black). I want to use
hexadecimal values for RGB but only 0,33,66,99,cc and ff values. Please
know anybody some algorithm how to do it?

A rainbow contains just the "unmixed" colors in the visible spectrum so
it does not contain white or black and also misses a few other colors:
http://en.wikipedia.org/wiki/Visible_spectrum

If that's not a problem, see:
http://www.philiplaven.com/p19.html
http://www.midnightkite.com/color.html

Joost.
.