GSET_FILL_INT_STYLE(3NCARG)

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

πŸ’– GSET_FILL_INT_STYLE πŸ’–

okay bestie, so this is a page from the NCAR GRAPHICS manual, and the function we're obsessing over today is gset_fill_int_style β€” aka Set fill area interior style. It's giving main character energy for one very specific job: it sets the fill style of the polygons you draw with gfill_area. That's it. That's the whole vibe. ✨


🌸 NAME 🌸

gset_fill_int_style (Set fill area interior style) β€” sets the fill style of polygons drawn with gfill_area. no cap, that's literally what it does πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ncarg/gks.h>

void gset_fill_int_style(Gfill_int_style fill_int_style);

✨ DESCRIPTION ✨

So you pass in one little argument and it changes how all your future polygons get filled. Iconic behaviour, honestly.

  • fill_int_style β€” (Input) this is the style of fill that gets used in all the subsequent calls to the gfill_area output primitive. Like, it's setting the mood for everything that comes after. Your options are:
    • GSTYLE_HOLLOW β€” Hollow fill (this is the default, so if you didn't ask for anything, this is what you got 🫠)
    • GSTYLE_SOLID β€” Solid fill (the full-coverage queen πŸ‘‘)
    • GSTYLE_PAT β€” Pattern fill (not implemented in NCAR GKS, so don't get your hopes up bestie 😭)
    • GSTYLE_HATCH β€” Hatch fill (lines! stripes! a whole lewk 🌈)

πŸ’« USAGE πŸ’«

If you're going with fill style "Hatch", then gset_fill_style_ind is the one you call to specify which type of hatch pattern you want β€” horizontal lines, vertical lines, etc. They're a package deal, fr fr.

⚠️ Real talk, this note is important: if you call gfill_area and you get an output graphic back and it's just a closed curve with no fill at all? You probably let the fill choice default to hollow fill (aka no fill). Not a bug, just a default doing default things. πŸ™ˆ

πŸ”‘ ACCESS πŸ”‘

To use the GKS C-binding routines, you load the ncarg_gks and ncarg_c libraries. That's the whole secret. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

Online:

  • gfill_area(3NCARG)
  • gset_fill_style_ind(3NCARG)
  • gset_colr_rep(3NCARG)
  • gset_fill_colr_ind(3NCARG)
  • ginq_fill_int_style(3NCARG)
  • ginq_fill_style_ind(3NCARG)
  • areas(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.


and that's the whole page, bestie!! this one came straight outta the UNIX corner of the NCAR Graphics docs, dated March 1993 β€” vintage but still slaying. go fill some polygons, ily πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from