W3cubDocs

/Matplotlib 3.5

matplotlib.colors.rgb_to_hsv

matplotlib.colors.rgb_to_hsv(arr)[source]

Convert float rgb values (in the range [0, 1]), in a numpy array to hsv values.

Parameters
arr(..., 3) array-like

All values must be in the range [0, 1]

Returns
(..., 3) ndarray

Colors converted to hsv values in range [0, 1]

Examples using matplotlib.colors.rgb_to_hsv

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.colors.rgb_to_hsv.html