From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/stdgraph/stgplset.x | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys/gio/stdgraph/stgplset.x (limited to 'sys/gio/stdgraph/stgplset.x') diff --git a/sys/gio/stdgraph/stgplset.x b/sys/gio/stdgraph/stgplset.x new file mode 100644 index 00000000..c435feb5 --- /dev/null +++ b/sys/gio/stdgraph/stgplset.x @@ -0,0 +1,20 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include "stdgraph.h" + +# STG_PLSET -- Set the polyline attributes. The polyline width parameter is +# passed to the encoder as a packed floating point number, i.e., int(LWx100). + +procedure stg_plset (gki) + +short gki[ARB] # attribute structure +pointer pl +include "stdgraph.com" + +begin + pl = SG_PLAP(g_sg) + PL_LTYPE(pl) = gki[GKI_PLSET_LT] + PL_WIDTH(pl) = max (1, nint (GKI_UNPACKREAL (gki[GKI_PLSET_LW]))) + PL_COLOR(pl) = gki[GKI_PLSET_CI] +end -- cgit