[reportlab-users] HSV color space conversion functions

Bernhard Herzog reportlab-users@reportlab.com
13 Aug 2002 18:34:02 +0200


Robin Becker <robin@reportlab.com> writes:

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

FWIW, PostScript's sethsbcolor uses the range [0..1] for the hue just
like for the other parameters.

> Perhaps python's colorsys thing isn't really true HSV? 

They seem to work fine in Sketch's color dialog.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/