GINQ_COLR_REP(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

✨ 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 to gopen_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 to gset_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 index colr_ind, either by default or by a call to gset_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 in err_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 range 0. to 1. inclusive. 🌹
  • colr_rep.rgb.green (Gfloat, Output) β€” returns an intensity value for green, in the range 0. to 1. inclusive. πŸ€
  • colr_rep.rgb.blue (Gfloat, Output) β€” returns an intensity value for blue, in the range 0. to 1. 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 (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