NAME
cxHSVtoRGB
- convert color values from hue/saturation/value to red/green/blue
C SPECIFICATION
#include <cx/DataAccess.h>
void cxHSVtoRGB( float hsv[3], float rgb[3] )
FORTRAN SPECIFICATION
subroutine cxHSVtoRGB( hsv, rgb )
real hsv(3)
real rgb(3)
DESCRIPTION
cxHSVtoRGB
converts the Hue/Saturation/Value color values stored in
hsv
into Red/Green/Blue values stored in
rgb.
A hue (hsv[0]) of 0 maps to red, 1/3 maps to green,
2/3 to blue, 1 maps to red. Hue values of less than 0 and
more than 1 are mapped modulo 1.
Saturation and value (hsv[1] and hsv[2])
are clamped to the range [0..1].
The output values will be in the range [0..1].
SEE ALSO
cxRGBtoHSV
cxParamColorFloatGet
cxParamColorFloatSet
cxParamColorPackedGet
cxParamColorPackedSet
Last modified: Mon Nov 18 13:49:39 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996