1RGBHSV(3NCARG)                   NCAR GRAPHICS                  RGBHSV(3NCARG)
2
3
4

NAME

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

SYNOPSIS

11       CALL RGBHSV (R, G, B, H, S, V)
12

C-BINDING SYNOPSIS

14       #include <ncarg/ncargC.h>
15
16       void c_rgbhsv (float r, float g, float b, float *h,
17       float *s, float *v)
18

DESCRIPTION

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

C-BINDING DESCRIPTION

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

EXAMPLES

51       Use the ncargex command to see the following relevant examples: tcolcv,
52       fcce02.
53

ACCESS

55       To use RGBHSV or c_rgbhsv, load the NCAR Graphics libraries ncarg,
56       ncarg_gks, and ncarg_c, preferably in that order.
57

MESSAGES

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

SEE ALSO

63       Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbyiq, yiqrgb, ncarg_cbind.
64
65       Hardcopy: NCAR Graphics Fundamentals, UNIX Version
66
68       Copyright (C) 1987-2007
69       University Corporation for Atmospheric Research
70
71       This documentation is free software; you can redistribute it and/or
72       modify it under the terms of the GNU General Public License as
73       published by the Free Software Foundation; either version 2 of the
74       License, or (at your option) any later version.
75
76       This software is distributed in the hope that it will be useful, but
77       WITHOUT ANY WARRANTY; without even the implied warranty of
78       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
79       General Public License for more details.
80
81       You should have received a copy of the GNU General Public License along
82       with this software; if not, write to the Free Software Foundation,
83       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
84
85
86
87UNIX                              March 1993                    RGBHSV(3NCARG)
Impressum