HSVRGB(3) Converts a color specification given in the

SYNOPSIS

CALL HSVRGB (H, S, V, R, G, B)

C-BINDING SYNOPSIS

#include <ncarg/ncargC.h>

void c_hsvrgb (float h, float s, float v, float *r,
float *g, float *b)

DESCRIPTION

H
(REAL, input, range [0.,360.) ) represents the hue of the input color in HSV color space.
S
(REAL, input, range [0.,1.]) represents the saturation value of the input color in HSV color space. Saturation is a measure of how much white light is mixed with the color. Saturation values of 0. represent grays (with a gray value equal to the value V). Saturation values of 1. are fully saturated colors. The hue is undefined when S=0. The fully saturated pure hues occur when S=1. and V=1.
V
(REAL, input, range [0.,1.]) represents the value of the input color in HSV color space.
R
(REAL, output, range [0.,1.]) represents the red intensity component of the output color in RGB color space.
G
(REAL, output, range [0.,1.]) represents the green intensity component of the output color in RGB color space.
B
(REAL, output, range [0.,1.]) represents the blue intensity component of the output color in RGB color space.

C-BINDING DESCRIPTION

The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

EXAMPLES

Use the ncargex command to see the following relevant examples: coex03, tcolcv, fcce02.

ACCESS

To use HSVRGB or c_hsvrgb, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.

MESSAGES

See the colconv man page for a description of all Colconv error messages and/or informational messages.

COPYRIGHT

Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.