Generating a rainbow?

Giacomo Boffi giacomo.boffi at polimi.it
Tue Apr 13 09:51:12 EDT 2010


Tobiah <toby at rcsreg.com> writes:

> I'm having a difficult time with this.  I want
> to display a continuous range of hues using HTML
> hex representation (#RRGGBB).  How would I go 
> about scanning through the hues in order to
> make a rainbow?

if you mean real rainbows when you say "rainbow", as rainbows go from
low to high wavelengths and you have to specify colors to your display
in RGB, i think that you have to read, e.g.,

http://www.physics.sfasu.edu/astro/color.html

otoh if you mean simply a continuos palette with varying hues,
excellent answers were already posted

hth
                                                                g
-- 
compro mobili vecchi - vendo mobili antichi



More information about the Python-list mailing list