GSPLCI(3NCARG)
π GSPLCI β polyline color index, bestie π
okay so this is a page from the NCAR Graphics manual (the 3NCARG one, iykyk) and it's literally all about making your polylines a different color. that's it. that's the whole vibe. β¨
β¨ NAME β¨
GSPLCI (Polyline color index) β sets the polyline color index. no cap, that's the entire job. π
β¨ SYNOPSIS β¨
CALL GSPLCI (COLI)
β¨ C-BINDING SYNOPSIS β¨
yes bestie, there's a C binding too, she's serving:
#include <ncarg/gks.h>
void gset_line_colr_ind(Gint line_colr_ind);
β¨ DESCRIPTION β¨
COLIβ (Integer, Input) β a color index. that's it, that's the whole parameter. you hand her a number, she picks a color. π
β¨ USAGE β¨
okay so here's the tea π: every single line you draw with calls to the GPL output primitive is gonna be drawn in the color tied to index COLIβ¦ and it stays that way until you call GSPLCI again and assign a new index. so it's sticky. she remembers. main character energy honestly. π
for all GKS output primitives, color gets assigned using a color index. and the indices run from 0 to 255, where:
0is the background color index π«Ά1is the foreground color index π
color values get associated with indices by calling the GKS routine GSCR. so like, that's where the actual color lives.
β οΈ and listen β if you use a color index that has no user-assigned color value set in a GSCR call, then a device-dependent color value gets assigned to that index instead. so it's not undefined, it's justβ¦ not yours. the device decides. π
β¨ ACCESS β¨
to use these GKS routines, load the NCAR GKS-0A library ncarg_gks. periodt. π
β¨ SEE ALSO β¨
Online: gpl, gsln, gslwsc, gscr, gqln, gqlwsc, gqplci, dashline, gset_line_colr_ind
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, bestie π¦ this was the GSPLCI(3NCARG) page from the UNIX manual, dated March 1993, and it ate. go forth and color your polylines. 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