GSET_LINE_COLR_IND(3NCARG)
π GSET_LINE_COLR_IND π
okay bestie, so this is a page from the NCAR GRAPHICS manual, and it lives in section 3NCARG β that's the part of the library where all the C-binding GKS graphics calls hang out. sit down, grab a boba, and let's talk about making your polylines a whole new color. π
β¨ NAME β¨
gset_line_colr_ind (Polyline color index) β sets the polyline color index. that's it, that's the whole job. it picks which color your lines are gonna be. π
π¦ SYNOPSIS π¦
#include <ncarg/gks.h>
void gset_line_colr_ind(Gint line_colr_ind);
πΈ DESCRIPTION πΈ
line_colr_indβ (Input) a color index. just a lil number that says "this color pls". β¨
π USAGE π
okay so here's the tea. every line you draw with the gpolyline output primitive gets drawn in the color associated with the index line_colr_ind β and it stays that color until you call gset_line_colr_ind again and hand it a new index. so yeah, it's a "set it and forget it until you change your mind" kinda situation. π«Ά
now for the lore. for all GKS output primitives, color gets assigned using a color index. these indices run from 0 to 255, where:
0is the background color index π1is the foreground color index βοΈ
the actual color values get hooked up to those indices by calling the GKS routine gset_colr_rep. and here's the plot twist β 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 instead. so like, you didn't pick it, your device picked it. no cap. π
π₯ ACCESS π₯
to use the GKS C-binding routines, you gotta load the ncarg_gks and ncarg_c libraries. both of them. don't skip one, bestie. π
π SEE ALSO π
Online:
gpolyline(3NCARG)gset_linetype(3NCARG)gset_linewidth(3NCARG)gset_colr_rep(3NCARG)ginq_linetype(3NCARG)ginq_linewidth(3NCARG)ginq_line_colr_ind(3NCARG)dashline(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.
and that's the whole page, babe. π this one's from the UNIX corner of the manual, dated March 1993, and it's filed under GSET_LINE_COLR_IND(3NCARG). go forth and color those polylines, main character. πβ¨π¦
π¦ 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