sciris.sc_colors.rgb2hsv

rgb2hsv(colors=None)[source]

Shortcut to Matplotlib’s rgb_to_hsv method, accepts a color triplet or a list/array of color triplets.

Example:

hsv = sc.rgb2hsv([0.53, 0.74, 0.15]) # Returns array([0.2259887, 0.7972973, 0.74     ])