1YIQRGB(3NCARG) NCAR GRAPHICS YIQRGB(3NCARG)
2
3
4
6 YIQRGB - Converts a color specification given in the YIQ color space to
7 the equivalent color specification in the Red, Green, Blue (RGB) color
8 space.
9
11 CALL YIQRGB (Y, I, Q, R, G, B)
12
14 #include <ncarg/ncargC.h>
15
16 void c_yiqrgb (float y, float i, float q, float *r,
17 float *g, float *b)
18
20 Y (REAL, input, range [0.,1.]) specifies the color component
21 of a television signal that is shown on black-and-white
22 televisions; Y minimizes the effect of two colors appearing
23 different to the human eye but mapping to similar
24 monochrome intensities.
25
26 I (REAL, input, range [-.6,.6])
27
28 Q (REAL, input, range [-.52,.52])
29
30 R (REAL, output, range [0.,1.]) represents the red intensity
31 component of the output color in RGB color space.
32
33 G (REAL, output, range [0.,1.]) represents the green
34 intensity component of the output color in RGB color space.
35
36 B (REAL, output, range [0.,1.]) represents the blue
37 intensity component of the output color in RGB color space.
38
40 The C-binding argument descriptions are the same as the FORTRAN
41 argument descriptions.
42
44 Use the ncargex command to see the following relevant examples: tcolcv,
45 fcce02.
46
48 To use YIQRGB or c_yiqrgb, load the NCAR Graphics libraries ncarg,
49 ncarg_gks, and ncarg_c, preferably in that order.
50
52 Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbhsv, rgbyiq, ncarg_cbind.
53
54 Hardcopy: NCAR Graphics Fundamentals, UNIX Version
55
57 Copyright (C) 1987-2007
58 University Corporation for Atmospheric Research
59
60 This documentation is free software; you can redistribute it and/or
61 modify it under the terms of the GNU General Public License as
62 published by the Free Software Foundation; either version 2 of the
63 License, or (at your option) any later version.
64
65 This software is distributed in the hope that it will be useful, but
66 WITHOUT ANY WARRANTY; without even the implied warranty of
67 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
68 General Public License for more details.
69
70 You should have received a copy of the GNU General Public License along
71 with this software; if not, write to the Free Software Foundation,
72 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
73
74
75
76UNIX March 1993 YIQRGB(3NCARG)