diff options
Diffstat (limited to 'sys/gio/stdgraph/stgplset.x')
-rw-r--r-- | sys/gio/stdgraph/stgplset.x | 20 |
1 files changed, 20 insertions, 0 deletions
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 <gki.h> +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 |