PyDocs

Nav

Multimedia Services

rgb_to_hsv

colorsys

function (source)
  • rgb_to_hsv(r, g, b)
Convert the color from RGB coordinates to HSV coordinates.
1 Example
>>> import colorsys
>>> colorsys.rgb_to_hsv(0.2, 0.4, 0.4)
(0.5, 0.5, 0.4)
>>> colorsys.hsv_to_rgb(0.5, 0.5, 0.4)
(0.2, 0.4, 0.4)
from the Python docs
See Also
No see-alsos for colorsys/rgb_to_hsv
0 Notes
No notes for rgb_to_hsv