[issue29625] colorsys.rgb_to_hsv always returns saturation as 0 (python2.7 only)

Mark Dickinson report at bugs.python.org
Wed Feb 22 15:42:16 EST 2017


Mark Dickinson added the comment:

The arguments to rgb_to_hsv are supposed to be floating-point numbers in the range 0.0 to 1.0. That's documented here: https://docs.python.org/2/library/colorsys.html

> Coordinates in all of these color spaces are floating point values. In the YIQ space, the Y coordinate is between 0 and 1, but the I and Q coordinates can be positive or negative. In all other spaces, the coordinates are all between 0 and 1.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29625>
_______________________________________


More information about the Python-bugs-list mailing list