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-2009
62       University Corporation for Atmospheric Research
63       The use of this Software is governed by a License Agreement.
64
65
66
67UNIX                              March 1993                    RGBYIQ(3NCARG)
Impressum