GSET_TEXT_COLR_IND(3NCARG)
β¨ 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:
0is the background color index1is 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 π
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
- 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