rgbtohsv VEX function

Convert RGB color space to HSV color space.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

  1. vector rgbtohsv(vector hsv)

  2. 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.