[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: How to make "rainbow" RGB values?

Andrew McNamara

2/26/2008 5:53:00 AM

>>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-cra...