logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

YIQRGB - Converts a color specification given in the YIQ color space to the equivalent color

Access

       To  use YIQRGB or c_yiqrgb, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in
       that order.

C-Binding Description

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

C-Binding Synopsis

       #include <ncarg/ncargC.h>

       void c_yiqrgb (float y, float i, float q, float *r,
       float *g, float *b)

Description

       Y           (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.

       I           (REAL, input, range [-.6,.6])

       Q           (REAL, input, range [-.52,.52])

       R           (REAL,  output, range [0.,1.])  represents the red intensity component of the output color in
                   RGB color space.

       G           (REAL, output, range [0.,1.])  represents the green intensity component of the  output  color
                   in RGB color space.

       B           (REAL, output, range [0.,1.])  represents the blue intensity component of the output color in
                   RGB color space.

Examples

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

Name

       YIQRGB - Converts a color specification given in the YIQ color space to the equivalent color
       specification in the Red, Green, Blue (RGB) color space.

See Also

       Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbhsv, rgbyiq, ncarg_cbind.

       Hardcopy: NCAR Graphics Fundamentals, UNIX Version

Synopsis

       CALL YIQRGB (Y, I, Q, R, G, B)

See Also