1HSVRGB(3NCARG) NCAR GRAPHICS HSVRGB(3NCARG)
2
3
4
6 HSVRGB - Converts a color specification given in the Hue, Saturation,
7 and Value (HSV) color space to color values in the Red, Green, Blue
8 (RGB) color space.
9
11 CALL HSVRGB (H, S, V, R, G, B)
12
14 #include <ncarg/ncargC.h>
15
16 void c_hsvrgb (float h, float s, float v, float *r,
17 float *g, float *b)
18
20 H (REAL, input, range [0.,360.) ) represents the hue of the
21 input color in HSV color space.
22
23 S (REAL, input, range [0.,1.]) represents the saturation
24 value of the input color in HSV color space. Saturation is
25 a measure of how much white light is mixed with the color.
26 Saturation values of 0. represent grays (with a gray value
27 equal to the value V). Saturation values of 1. are fully
28 saturated colors. The hue is undefined when S=0. The fully
29 saturated pure hues occur when S=1. and V=1.
30
31 V (REAL, input, range [0.,1.]) represents the value of the
32 input color in HSV color space.
33
34 R (REAL, output, range [0.,1.]) represents the red intensity
35 component of the output color in RGB color space.
36
37 G (REAL, output, range [0.,1.]) represents the green
38 intensity component of the output color in RGB color space.
39
40 B (REAL, output, range [0.,1.]) represents the blue
41 intensity component of the output color in RGB color space.
42
44 The C-binding argument descriptions are the same as the FORTRAN
45 argument descriptions.
46
48 Use the ncargex command to see the following relevant examples: coex03,
49 tcolcv, fcce02.
50
52 To use HSVRGB or c_hsvrgb, load the NCAR Graphics libraries ncarg,
53 ncarg_gks, and ncarg_c, preferably in that order.
54
56 See the colconv man page for a description of all Colconv error
57 messages and/or informational messages.
58
60 Online: colconv, hlsrgb, rgbhls, rgbhsv, rgbyiq, yiqrgb, ncarg_cbind.
61
62 Hardcopy: NCAR Graphics Fundamentals, UNIX Version
63
65 Copyright (C) 1987-2009
66 University Corporation for Atmospheric Research
67 The use of this Software is governed by a License Agreement.
68
69
70
71UNIX March 1993 HSVRGB(3NCARG)