YIQRGB(3NCARG)
β¨ NAME β¨
ok so bestie, welcome to YIQRGB from the NCAR GRAPHICS manual (section 3NCARG, if you're keeping track π ) β this one is a color converter and she's lowkey iconic.
YIQRGB converts a color specification given in the YIQ color space to the equivalent color specification in the Red, Green, Blue (RGB) color space. that's it, that's the whole job, and she does it flawlessly. periodt. π
πΈ SYNOPSIS πΈ
CALL YIQRGB (Y, I, Q, R, G, B)
π« C-BINDING SYNOPSIS π«
#include <ncarg/ncargC.h>
void c_yiqrgb (float y, float i, float q, float *r,
float *g, float *b)
π DESCRIPTION π
ok so here are the six arguments, and yes you gotta know all of them, no skipping π«Ά
Y(REAL, input, range [0.,1.]) β specifies the color component of a television signal that is shown on black-and-white televisions. the way thatYminimizes the effect of two colors appearing different to the human eye but mapping to similar monochrome intensities?? obsessed. it's giving "i look different but i hit the same on a grayscale TV" energy. πI(REAL, input, range [-.6,.6]) β one of the two chrominance-ish inputs, bestie. that's the range, respect the range. πΈQ(REAL, input, range [-.52,.52]) β the other input, and yes the range is different fromI's, don't get it twisted. πR(REAL, output, range [0.,1.]) β represents the red intensity component of the output color in RGB color space. she's giving output energy, so don't expect her to have a value going in. π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. π¦
π C-BINDING DESCRIPTION π
ngl, the C-binding argument descriptions are the same as the FORTRAN argument descriptions. like, literally identical. same y, i, q coming in, same *r, *g, *b pointers coming out. no cap. π
π EXAMPLES π
want to actually see this in action? use the ncargex command to see the following relevant examples: tcolcv, fcce02. go look, they ate. π₯
π₯ ACCESS π₯
to use YIQRGB or c_yiqrgb, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. the order matters bestie, don't be chaotic about it. π
π SEE ALSO π
Online: colconv, hlsrgb, hsvrgb, rgbhls, rgbhsv, rgbyiq, ncarg_cbind.
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
π COPYRIGHT π
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
ok that's the whole page, mwah π this was YIQRGB(3NCARG) from the NCAR Graphics manual, and the version deets at the bottom say UNIX, dated March 1993 β yeah she's vintage but she still slays. bye bestie, go convert some colors π
β¨π«Ά
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms