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-2007
66 University Corporation for Atmospheric Research
67
68 This documentation is free software; you can redistribute it and/or
69 modify it under the terms of the GNU General Public License as
70 published by the Free Software Foundation; either version 2 of the
71 License, or (at your option) any later version.
72
73 This software is distributed in the hope that it will be useful, but
74 WITHOUT ANY WARRANTY; without even the implied warranty of
75 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
76 General Public License for more details.
77
78 You should have received a copy of the GNU General Public License along
79 with this software; if not, write to the Free Software Foundation,
80 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
81
82
83
84UNIX March 1993 HSVRGB(3NCARG)