SFGETP(3NCARG)
π 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 typeINTEGER, dimensioned8x8, and it's gonna come back holding0s and1s that spell out the dot pattern currently sitting in the internal arrayLDP. π«Ά
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 π
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
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms