void cxRGBtoHSV( float rgb, float hsv )
subroutine cxRGBtoHSV( rgb, hsv ) real rgb(3) real hsv(3)
The Hue/Saturation/Value color system is described in most elementary books on computer graphics. Hue is the "color" of the color. Here a value of 0 maps to red, 1/3 maps to green, 2/3 maps to blue and 1 also maps to red. Saturation is the amount of white in the color. Pure colors, such as red, have a saturation value of 1. Value is the brightness, or intensity of the color. A value of 0 produces black, regardless of the hue and saturation.
Input values are clamped to the range [0..1]. Output values will be in the range [0..1].