How to make "rainbow" RGB values?

Andrew McNamara andrewm at object-craft.com.au
Tue Feb 26 00:53:19 EST 2008


>>Consider using an HSV->RGB conversion function. Saturation (S) and value
>>(V) should remain constant, while Hue (H) varies to get your rainbow
>>effect.
>
>Hey thank you very much, that worked like a charm!  :]
>
>There's even a library function in the colorsys module (http://
>docs.python.org/lib/module-colorsys.html)

Well, now you've helped me - I had no idea there was an HSV->RGB
conversion function in the standard library. 8-)

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Python-list mailing list