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:
0is the background color index1is 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 Β©οΈ
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 π₯π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms