GQCR(3NCARG)
β¨ GQCR (Inquire color representation) β¨
okay bestie, so this is GQCR, from the NCAR GRAPHICS manual (section 3NCARG, we love a legend) π and it's literally the "what color is that actually" function. It retrieves the color value associated with a color index on a particular workstation. that's the whole vibe. π¨β¨
πΈ SYNOPSIS πΈ
CALL GQCR (WKID, CI, TYPE, ERRIND, CR, CG, CB)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/gks.h>
void ginq_colr_rep(Gint ws_id, Gint colr_ind, Ginq_type type, Gint
*err_ind, Gcolr_rep *colr_rep);
π DESCRIPTION π
okay so here's every single argument, no skips, we're being thorough because that's the energy:
WKID(Integer, Input) β the workstation identifier, and it has to be the same one you set earlier when you calledGOPWK. like, the exact same one. no cap. π₯οΈCI(Integer, Input) β a color index. just a color index. that's it, that's the whole job. πTYPE(Integer, Input) β this one's lowkey important bestie, because it decides which color values come back at you: the ones you asked for with aGSCRcall, or the ones the workstation is actually using. and yes, those are often different, because (and this is a direct quote from the lore) frequently a workstation will not be able to represent a requested color value precisely. so it fudges it. it does its best. π0β Returns the color value set for indexCIeither by default or by a call toGSCR. (the idea of the color, the dream π)1β Returns the color value actually used by the workstation to represent the requested color. (the color you're actually getting, the reality check π« )
ERRIND(Integer, Output) β if the inquired values can't be returned correctly, you get a non-zero error indicator here. otherwise? a zero. very chill of it. go read the "User's Guide for NCAR GKS-0A Graphics" if you wanna know what each error indicator means, because that's where the lore lives. πCR(Real, Output) β the red intensity value, in the range0.to1.inclusive. πΉCG(Real, Output) β the green intensity value, in the range0.to1.inclusive. πΏCB(Real, Output) β the blue intensity value, in the range0.to1.inclusive. π«
so you get three lil reals back and suddenly you know exactly what shade of blue that index turned into. iconic. π
π«Ά USAGE π«Ά
want the details on setting and using color indices? go read the man page for GSCR. that's the one that tells you how to set them. this one just tells you what they became. iykyk. β¨
π ACCESS π
To use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the tea. π₯
π SEE ALSO π
Online: gscr, gsplci, gsmkci, gstxci, gsfaci, ginq_colr_rep
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
like literally a whole friend group of man pages, go say hi to all of them π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
okay bestie that's the whole page, every flag, every value, every last detail, all accounted for π now go forth and inquire about some colors, you absolute main character π β¨
later babes π this was GQCR(3NCARG) from the UNIX manual, dated March 1993, and it slayed then and it slays now. periodt. πΈπ¦β
π¦ 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