DPFRST(3NCARG)
π DPFRST β bestie, let's start a curve π
okay so this is a page from the NCAR GRAPHICS manual, section 3NCARG, and the star of the show is DPFRST. no cap, it's lowkey one of the most important little subroutines in the Dashpack fam. sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
DPFRST β specifies the first point in a sequence of points, in the user coordinate system, defining a curve to be drawn. it's giving "everyone, meet the starting point of our curve" π
β¨ SYNOPSIS β¨
CALL DPFRST (XCPU,YCPU)
β¨ C-BINDING SYNOPSIS β¨
#include <ncarg/ncargC.h>
void c_dpfrst (float xcpu, float ycpu);
β¨ DESCRIPTION β¨
XCPUβ an input expression of typeREALthat specifies the X coordinate of a point, in the user coordinate system. it's the horizontal vibe π¦YCPUβ an input expression of typeREALthat specifies the Y coordinate of a point, in the user coordinate system. and that's the vertical vibe πΈ
π C-BINDING DESCRIPTION π
the C-binding argument descriptions are literally the same as the FORTRAN argument descriptions. no notes, same energy, periodt β¨
β¨ USAGE β¨
so here's the tea, bestie π: you call DPFRST to do a "pen-up" move to the first of a sequence of points defining a curve. like, the pen is in the air, we're just traveling to the spot, no ink yet.
then you call DPVECT to do the "pen-down" moves to each of the other points in the sequence β now we're actually drawing, bestie, ink is flowing π
and then you call DPLAST to finish drawing the curve and flush the buffers. chef's kiss, the curve is done, the buffers are squeaky clean π
behind the scenes (and this part is important, don't skip it): DPFRST maps the input coordinates to the fractional coordinate system and then does a "pen-up" call to either DPDRAW (if smoothing is turned off) or to DPSMTH (if smoothing is turned on) with those coordinates. so it's basically the bouncer at the door deciding which function gets the point πͺβ¨
β¨ EXAMPLES β¨
use the ncargex command to see the following relevant examples: tdshpk. go look, it's right there, it's iconic π₯
β¨ ACCESS β¨
to use DPFRST or c_dpfrst, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β preferably in that order. don't switch up the order, bestie, it's not a vibe π
β¨ SEE ALSO β¨
Online: dashpack, dashpack_params, dpcurv, dpdraw, dpgetc, dpgeti, dpgetr, dplast, dpline, dpsetc, dpseti, dpsetr, dpsmth, dpvect, ncarg_cbind.
Hardcopy: None.
(ngl the online list is stacked, that's the whole friend group fr fr π«Ά)
β¨ COPYRIGHT β¨
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
β οΈ real talk: the use of this Software is governed by a License Agreement. so read it, bestie, it's not optional π
and that's the whole page!! π this one shipped with the UNIX manual, dated March 1995, from your friends at NCAR GRAPHICS. stay slay, go draw some gorgeous curves, and remember: pen up, pen down, DPLAST, done. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms