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