rgbtohsv
VEX function
Convert RGB color space to HSV color space.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
-
vector rgbtohsv(vector hsv) -
vector rgbtohsv(float h, float s, float v)
Convert RGB color space to HSV color space. A vector representing the HSV color is returned. The hue will be in the range 0 to 1.