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

NAME

6       RGBYIQ - Converts a color specification given in the RGB Red, Green,
7       Blue, (RGB) color space to a color specification in the YIQ color
8       space.
9

SYNOPSIS

11       CALL RGBYIQ (R, G, B, Y, I, Q)
12

C-BINDING SYNOPSIS

14       #include <ncarg/ncargC.h>
15
16       void c_rgbyiq (float r, float g, float b, float *y,
17       float *i, float *q)
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       Y           (REAL, output, range [0.,1.])  This is the color component
30                   of a television signal that is shown on black-and-white
31                   televisions; Y minimizes the effect of two colors appearing
32                   different to the human eye but mapping to similar
33                   monochrome intensities.
34
35       I           (REAL, output, range [-.6,.6]) attains its maximum when the
36                   input triple is (1.,0.,0.); I attains its minimum when the
37                   input triple is (0.,1.,1.).
38
39       Q           (REAL, output, range [-.52,.52]) attains its maximum when
40                   the input triple is (1.,0.,1.); Q attains its minimum when
41                   the input triple is (0.,1.,0.).
42

C-BINDING DESCRIPTION

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

EXAMPLES

48       Use the ncargex command to see the following relevant example: tcolcv,
49       fcce02.
50

ACCESS

52       To use RGBYIQ or c_rgbyiq, load the NCAR Graphics libraries ncarg,
53       ncarg_gks, and ncarg_c, preferably in that order.
54

SEE ALSO

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