GSPLCI(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– 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:

  • 0 is the background color index 🫢
  • 1 is 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 (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