GSET_TEXT_COLR_IND(3NCARG)

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

✨ GSET_TEXT_COLR_IND ✨

okay bestie, welcome to the NCAR GRAPHICS corner of the universe πŸ’– this one lives in section 3NCARG and it is so simple it's honestly iconic.

🌸 NAME 🌸

gset_text_colr_ind (aka Set text color index) β€” it sets the text color index. that's it. that's the whole job. and it does it flawlessly. periodt. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ncarg/gks.h>

void gset_text_colr_ind(Gint text_colr_ind);

πŸŽ€ DESCRIPTION πŸŽ€

  • text_colr_ind β€” (Input) a color index. just... a color index. give it a number, bestie, and it will be the number. 🌈

πŸ’œ USAGE πŸ’œ

okay so here's the tea β˜• β€” every single text string you draw with calls to the gtext output primitive is gonna be drawn with the color tied to whatever text_colr_ind you handed over, and it stays that way until you call gset_text_colr_ind again and assign a brand new index. no cap. it just keeps vibing with that color forever until you tell it otherwise. πŸ‘‘

now, for all GKS output primitives, color gets assigned via a color index. the indices run from 0 to 255 β€” yes, all 256 of them, she's got range πŸ’… β€” and here's the mapping you need to remember:

  • 0 is the background color index
  • 1 is the foreground color index

color values get associated with those indices by calling the GKS routine gset_colr_rep. and if you use a color index that has no user-assigned color value set in a gset_colr_rep call? no worries, a device-dependent color value will get assigned to that index. the device decides. it's giving "mystery box" energy 🎁✨


πŸ”₯ ACCESS πŸ”₯

to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. load them. both of them. don't skip, bestie 🫢


🧚 SEE ALSO 🧚

Online: gtext(3NCARG), gset_text_path(3NCARG), gset_text_align(3NCARG), gset_text_font_prec(3NCARG), gset_char_ht(3NCARG), gset_char_space(3NCARG), gset_char_up_vec(3NCARG), gset_char_expan(3NCARG), gset_colr_rep(3NCARG), ginq_text_path(3NCARG), ginq_text_align(3NCARG), ginq_text_font_prec(3NCARG), ginq_char_ht(3NCARG), ginq_char_space(3NCARG), ginq_char_up_vec(3NCARG), ginq_char_expan(3NCARG), plotchar(3NCARG), ncarg_gks_cbind(3NCARG)

Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version


Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.

fr fr, read the License Agreement. it's the rules of the group chat πŸ’€

okay that's the whole page bestie, you ate it up 🌟 this came from the UNIX manual, March 1993 edition, and it's serving NCAR Graphics realness to this very day. mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from