GINQ_COLR_REP(3NCARG)
β¨ GINQ_COLR_REP π (NCAR GRAPHICS, section 3NCARG)
okay bestie, gather round π«Ά this is a page from the NCAR Graphics manual, and today we're learning about ginq_colr_rep β Inquire color representation β which retrieves the color value associated with a color index on a particular workstation. like, you ask it "hey what color is this index on this machine" and it tells you. iconic behaviour honestly π
πΈ NAME πΈ
ginq_colr_rep (Inquire color representation) β retrieves the color value associated with a color index on a particular workstation. no cap, that's literally the whole job π
π 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);
copy it exactly bestie, don't get creative with the signature π
π¦ DESCRIPTION π¦
okay so here's the cast of characters, one by one:
ws_id(Input) β gives a workstation identifier, the same one you set in a previous call togopen_ws. like, the workstation has to already exist, we're not manifesting it out of thin air β¨colr_ind(Input) β a color index. that's the lil number you're asking about πtype(Input) β this one is the vibe check π it specifies whether the returned color values are the ones that were specified by a call togset_colr_rep, or whether they're the color values that are actually being used on the specified workstation. and fr fr, a workstation frequently will not be able to represent a requested color value precisely β she's doing her best, but she's got limits πGINQ_SETβ returns the color value set for indexcolr_ind, either by default or by a call togset_colr_rep. the β¨intendedβ¨ look.GINQ_REALIZEDβ returns the color value actually used by the workstation to represent the requested color. the "what you got, not what you asked for" option, no cap.
err_ind(Output) β if the inquired values can't be returned correctly, a non-zero error indicator lands inerr_ind; otherwise you get a zero. a zero is the slay outcome, a non-zero is the "something's off" outcome π and if you need the full lore on what each error indicator means, consult "User's Guide for NCAR GKS-0A Graphics".colr_rep.rgb.red(Gfloat, Output) β returns an intensity value for red, in the range0.to1.inclusive. πΉcolr_rep.rgb.green(Gfloat, Output) β returns an intensity value for green, in the range0.to1.inclusive. πcolr_rep.rgb.blue(Gfloat, Output) β returns an intensity value for blue, in the range0.to1.inclusive. π¦
so like, three floats walk into a struct and together they're your whole color. cute right?? π
π USAGE π
for details on setting and using color indices, go read the man page for gset_colr_rep. that's where the index-setting lore lives, iykyk π§
π ACCESS π
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the entry fee bestie, pay it π³
π₯ SEE ALSO π₯
Online: gset_colr_rep(3NCARG), gset_line_colr_ind(3NCARG), gset_marker_size(3NCARG), gset_text_colr_ind(3NCARG), gset_fill_colr_ind(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
go read the friends, they're all part of the same friend group π
π COPYRIGHT π
Copyright (C) 1987-2009 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
bestie, it's a License Agreement, not a vibe suggestion β respect it π«‘
and that's the whole page, no crumbs left πΈ this one came out of the UNIX corner of the manual, dated March 1993, and it lives under GINQ_COLR_REP(3NCARG) β 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