SFGETP(3NCARG)

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

πŸ’– SFGETP πŸ’–

okay bestie, so this is a page from the NCAR GRAPHICS manuals β€” it's SFGETP(3NCARG), and it's literally the lil function that hands you back whatever dot pattern Softfill is currently vibing with ✨


🌸 NAME 🌸

SFGETP β€” bestie, it's used to retrieve the current dot pattern πŸŽ€


✨ SYNOPSIS ✨

CALL SFGETP (IDP)

πŸ¦‹ C-BINDING SYNOPSIS πŸ¦‹

#include <ncarg/ncargC.h>

void c_sfgetp (int idp[8][8])

πŸ’… DESCRIPTION πŸ’…

  • IDP β€” an output array of type INTEGER, dimensioned 8x8, and it's gonna come back holding 0s and 1s that spell out the dot pattern currently sitting in the internal array LDP. 🫢

so like. when dot fill is selected, every single fill line gets drawn using dots that are the same distance apart along the line as the lines are from each other. which means the dots land right on the intersection points of a square grid. iconic geometry tbh ⭐

each dot is linked up with one specific element of LDP. that element is a 1? dot gets drawn. that element is a 0? dot does not get drawn. and the association is done in a way that replicates the pattern specified by LDP across the entire filled area, no cap.

if the fill angle is 0 (that's the default, bestie), then incrementing the first subscript of LDP = moving horizontally across the plot from left to right, and incrementing the second subscript of LDP = moving vertically across the plot from top to bottom. this is the part that lets you declare the contents of IDP in a DATA statement that literally makes a "picture" of the pattern. it's giving pixel art fr fr 🌈

for example, these FORTRAN statements:

                        DIMENSION IDP(8,8)
                        ...
                        DATA IDP / 0,0,0,0,0,0,0,0,
                       +           0,1,1,1,1,1,1,0,
                       +           0,1,0,0,0,0,0,1,
                       +           0,1,0,0,0,0,0,1,
                       +           0,1,1,1,1,1,1,0,
                       +           0,1,0,0,0,1,0,0,
                       +           0,1,0,0,0,0,1,0,
                       +           0,1,0,0,0,0,0,1/

...create the letter "R", with the correct orientation. ate, honestly πŸ’…

and the default dot pattern? it's all 1s. every dot. no skips. periodt. πŸ‘‘


πŸŽ€ USAGE πŸŽ€

this routine is how you retrieve the current value of Softfill's dot pattern. want the full description of Softfill's dot pattern parameter? go read the softfill_params man page, bestie, it's all there πŸ’œ


🌟 ACCESS 🌟

to use SFGETP or c_sfgetp, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. don't switch up the order, i'm begging πŸ™ˆ


πŸ’€ SEE ALSO πŸ’€

Online: softfill, softfill_params, sfgetc, sfgeti, sfgetr, sfsetc, sfseti, sfsetp, sfsetr, sfsgfa, sfwrld, ncarg_cbind

Hardcopy: 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.


bestie, quick legal vibe check: that license agreement is real and it governs the use of this software, so pls respect it πŸ’–

okay that's the whole page!! this was from the NCAR Graphics manual, SFGETP(3NCARG), UNIX, March 1993 β€” and we're done here, mwah πŸ’‹ ✨ 🧚

πŸ“¦ where this page comes from