GSPLCI(3NCARG)

πŸ’… GSPLCI β€” it's giving "polyline color index" ✨

okay bestie, so this is a page from the NCAR GRAPHICS manual, and it's literally about setting the polyline color index. That's it. That's the whole vibe. πŸŽ€


🌸 NAME 🌸

GSPLCI (Polyline color index) β€” sets the polyline color index. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

CALL GSPLCI (COLI)

✨ C-BINDING SYNOPSIS ✨

for the C girlies, you're including this:

#include <ncarg/gks.h>

void gset_line_colr_ind(Gint line_colr_ind);

πŸ’– DESCRIPTION πŸ’–

  • COLI (Integer, Input) β€” a color index. that's the whole thing she needs from you. just a number. iconic. πŸ‘‘

🌈 USAGE 🌈

okay so here's the tea. every line you draw with calls to the GPL output primitive will be drawn with the color associated with index COLI β€” and it stays that way until GSPLCI gets called again and a new index is assigned. so like, it's sticky. she remembers. no cap. πŸ’…

for all GKS output primitives, color is assigned using a color index. the color indices run from 0 to 255, where 0 is the background color index and 1 is the foreground color index. noted. 🫢

color values get associated with indices by calls to the GKS routine GSCR. and if you use a color index that has no user-assigned color value set in a GSCR call? then a device-dependent color value will be assigned to that index. so like, it's not undefined bestie, it's just ✨device-dependent✨ β€” meaning you don't get to pick, the device does. πŸ™ˆ


πŸ”₯ ACCESS πŸ”₯

to use GKS routines, load the NCAR GKS-0A library ncarg_gks. that's the whole access situation. go off. ⭐


πŸ‘‘ 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 page, bestie β€” GSPLCI(3NCARG), straight out of the UNIX manual, dated March 1993, from the NCAR Graphics source. mwah. πŸ’‹πŸŽ€πŸ¦‹