[reportlab-users] HSV color space conversion functions

Robin Becker reportlab-users@reportlab.com
Tue, 13 Aug 2002 17:16:30 +0100


In article <33D4A50C-AEC9-11D6-9E0F-00039345C610@darwin.in-berlin.de>,
Dinu Gherman <gherman@darwin.in-berlin.de> writes
>Bernhard Herzog:
>
>> Dinu Gherman <gherman@darwin.in-berlin.de> writes:
>>
>>> I recently wrote two simple functions to convert between RGB and
>>> HSV color values.
>>
>> How do they differ from the functions in Python's colorsys module?
>
>Mine have docstrings! ;-) And my range for the Hue component
>is [0...360] instead of [0...1]. Well, quite true, I should check
>the standard library more often... Thanks for pointing this out!
>
>Dinu
I think I prefer to have only a single definition for these things and
all the references I can find seem to use 0-360 for the H value in HSV &
HLS systems. Perhaps python's colorsys thing isn't really true HSV? 
-- 
Robin Becker