GSET_LINE_COLR_IND(3NCARG)

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

✨ NAME ✨

gset_line_colr_ind (aka the Polyline color index glow-up) β€” bestie, it sets the polyline color index πŸ’…

This one lives in the 3NCARG manual, so you already know it's giving classic NCAR Graphics energy πŸŽ€


🌸 SYNOPSIS 🌸

#include <ncarg/gks.h>

void gset_line_colr_ind(Gint line_colr_ind);

πŸ’– DESCRIPTION πŸ’–

  • line_colr_ind β€” (Input) a color index. That's it, that's the whole argument, she's lowkey simple like that πŸ™ˆ

πŸ¦‹ USAGE πŸ¦‹

Okay so here's the tea β˜• β€” every single line you draw by calling the gpolyline output primitive gets drawn in the color tied to the index line_colr_ind, and it keeps that vibe until you call gset_line_colr_ind again with a fresh index. No cap.

For all GKS output primitives, color is assigned using a color index. Those indices run from 0 to 255, where 0 is the background color index and 1 is the foreground color index. Iconic. πŸ‘‘

Color values get associated with indices by calls to the GKS routine gset_colr_rep. And here's the part you need to know, fr fr: 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'll be something, just not your something 😭


🌈 ACCESS 🌈

To use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. Periodt. 🫢


⭐ 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 (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


πŸ’Œ okay that's the whole page, bestie β€” go set those color indices and slay πŸ’…βœ¨

Signing off from the UNIX corner of the manual, dated March 1993 β€” yes she's an elder icon and she still ate. Source/version: NCAR GRAPHICS. Byeeee πŸ¦‹πŸ’–

πŸ“¦ where this page comes from