Skip to content

rgbtohsv

vector  rgbtohsv(vector rgb)

vector  rgbtohsv(float r, float g, float b)

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.