GQCR(3NCARG)
β¨ GQCR (Inquire color representation) β¨
okay bestie so this is GQCR, a little routine from the NCAR Graphics family (section 3NCARG, if you're keeping score) π and what it does is... it goes and asks a workstation "hey, what color is this index actually giving me?" β it retrieves the color value associated with a color index on a particular workstation. no cap. π
πΈ 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 the whole cast, one by one, and I need you to actually read this part because it's giving important:
WKID(Integer, Input) β the workstation identifier, and it's gotta be the same one you set in a previous call toGOPWK. like, the workstation you already introduced yourself to. π€CI(Integer, Input) β a color index. that's it. that's the whole job. the index you're curious about. π¨TYPE(Integer, Input) β this one's the main character fr, because it picks which color values come back to you: the ones that were specified by a call toGSCR, or the ones that are actually being used on the specified workstation. and yes, those can differ, because frequently a workstation will not be able to represent a requested color value precisely. π it's doing its best, okay?0β returns the color value set for indexCIeither by default or by a call toGSCR.1β returns the color value actually used by the workstation to represent the requested color.
ERRIND(Integer, Output) β if the inquired values can't be returned correctly, a non-zero error indicator comes back inERRIND. otherwise you get a zero. π«Ά and if you want the tea on what each error indicator actually means, go consult "User's Guide for NCAR GKS-0A Graphics".CR(Real, Output) β returns an intensity value for red, in the range0.to1.inclusive. πCG(Real, Output) β returns an intensity value for green, in the range0.to1.inclusive. π§CB(Real, Output) β returns an intensity value for blue, in the range0.to1.inclusive. π¦
π USAGE π
for all the details on setting and using color indices, go read the man page for GSCR. that's where the lore lives. iykyk. β¨
π ACCESS π
to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the vibe check you gotta pass. π
π 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
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
and that's the whole page bestie, we ate and left no crumbs π«Ά
this was GQCR(3NCARG) from the NCAR GRAPHICS manual, UNIX, dated March 1993 β iconic behavior honestly, periodt. πβ¨
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms