Converts a color specification given in the yiq color space to the equivalent color specification in the red, green, blue (rgb) color space.
CALL YIQRGB (Y, I, Q, R, G, B)
#include <ncarg/ncargC.h>
void c_yiqrgb (float y, float i, float q, float *r,
float *g, float *b)
(REAL, input, range [0.,1.]) specifies the color component of a television signal that is shown on black-and-white televisions; Y minimizes the effect of two colors appearing different to the human eye but mapping to similar monochrome intensities.
(REAL, input, range [-.6,.6])
(REAL, input, range [-.52,.52])
(REAL, output, range [0.,1.]) represents the red intensity component of the output color in RGB color space.
(REAL, output, range [0.,1.]) represents the green intensity component of the output color in RGB color space.
(REAL, output, range [0.,1.]) represents the blue intensity component of the output color in RGB color space.
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
Use the ncargex command to see the following relevant examples: tcolcv, fcce02.
To use YIQRGB or c_yiqrgb, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbhsv, rgbyiq, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.