LINED(3NCARG)
π LINED π (that's the NCAR Graphics manual, bestie)
okay so real quick β this page lives in the NCAR Graphics manual, section 3NCARG. it's literally just one little function and it's lowkey iconic. π
β¨ NAME β¨
LINED β draws a line segment between two points whose user coordinates are given. that's it. that's the whole job. and it ATE. π
πΈ SYNOPSIS πΈ
CALL LINED (XA,XB,YA,YB)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_lined (float xa, float xb, float ya, float yb)
π DESCRIPTION π
okay so here's the tea on the arguments. read them carefully bestie, they're in a weird order and you WILL mix up XA and XB if you're not paying attention:
XAβ an input expression of typeREAL. this is the X user coordinate of the starting point of your line segment. πΈYAβ an input expression of typeREAL. this is the Y user coordinate of the starting point of your line segment. πXBβ an input expression of typeREAL. this is the X user coordinate of the ending point of your line segment. β¨YBβ an input expression of typeREAL. this is the Y user coordinate of the ending point of your line segment. π¦
so it goes start-X, end-X, start-Y, end-Y. not start-X, start-Y, end-X, end-Y. i know. i KNOW. just double check it every single time, no cap. π
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical. same four floats, same order, same energy. so if you read the FORTRAN bit above you're already done here, you're so ahead of the game bestie. π
π EXAMPLES π
want to actually see this thing doing its little thing? run the ncargex command to check out these relevant examples:
tdashc, tdashl, tdashp, tdashs, fcoord1, fcoord2, fdldashc, fdldashd, fgklnclr, fgklnwth dashdb, dashdc, frstd, lined, reset, vectd, ncarg_cbind
go forth and run them, it's giving study session πβ¨
π₯ ACCESS π₯
to use LINED or c_lined, you gotta load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. order matters, don't be chaotic about it. π«Ά
π SEE ALSO π
Online: dashline, dashline_params, curved, dashdb, dashdc, frstd, lastd, reset, vectd, ncarg_cbind
Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; NCAR Graphics Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
π COPYRIGHT π
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, you're officially a LINED expert now, go draw some gorgeous little line segments and slay πβ¨ππ¦πΈπ
this was page LINED(3NCARG) from the UNIX manual, dated March 1993 β yes she's vintage, yes she still serves. bye bestie, ily, drink some water ππ§π
π¦ 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