GSET_FILL_COLR_IND(3NCARG)

πŸ’… GSET_FILL_COLR_IND β€” bestie edition ✨

okay so you're in the NCAR GRAPHICS cinematic universe (the 3NCARG girlies know 🌸) and you need to tell your fill areas what color to wear. that's literally this function. her government name is gset_fill_colr_ind, aka Set fill area color index, and what she does is... set the fill area color index. iconic, no notes πŸ’–


✨ SYNOPSIS ✨

#include <ncarg/gks.h>

void gset_fill_colr_ind(Gint fill_colr_ind);

like. she's a one-argument girlie. that's it. that's the whole vibe 🫢


πŸŽ€ DESCRIPTION πŸŽ€

  • fill_colr_ind β€” (Input) β€” a color index. that's the whole thing. you hand her a number, she takes it as the color index, slay πŸ’…

🌈 USAGE 🌈

okay so here's the tea, bestie πŸ“ every single filled area you draw with calls to the gfill_area output primitive is gonna get drawn in the color tied to the index fill_colr_ind β€” and it keeps doing that until you call gset_fill_colr_ind again with a new index. she's loyal like that. no cap πŸ’œ

and for all GKS output primitives, color gets assigned through a color index. the indices run from 0 to 255, where:

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

(ok the second one is foreground, i just wanted both to sparkle ✨)

you link actual color values to indices by calling the GKS routine gset_colr_rep. and listen β€” if you use a color index that has no user-assigned color value set in a gset_colr_rep call, then a device-dependent color value gets assigned to that index. so like, it's not gonna be undefined, it's just gonna be whatever your device feels like doing that day 😭 not you rolling the dice on your own palette πŸ™ˆ


πŸ”‘ ACCESS πŸ”‘

to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. both. don't skip one, that's giving "linker error main character energy" πŸ’€


πŸ‘€ SEE ALSO πŸ‘€

Online:

  • gfill_area(3NCARG)
  • gset_fill_int_style(3NCARG)
  • gset_fill_style_ind(3NCARG)
  • gset_colr_rep(3NCARG)
  • ginq_fill_int_style(3NCARG)
  • ginq_fill_style_ind(3NCARG)
  • areas(3NCARG)
  • gks(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, bestie. it's giving legally binding πŸ’–

okay that's the whole page!! mwah 🫢 this was UNIX, March 1993, brought to you by the GSET_FILL_COLR_IND(3NCARG) girlies β€” go forth and color your little hearts out, you're gonna eat πŸ”₯πŸ‘‘