diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/grdraw.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/grdraw.x')
-rw-r--r-- | sys/gio/grdraw.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/gio/grdraw.x b/sys/gio/grdraw.x new file mode 100644 index 00000000..7cd44a74 --- /dev/null +++ b/sys/gio/grdraw.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gio.h> + +# GRDRAW -- Relative draw, i.e., move the pen to the specified offset from the +# current position. + +procedure grdraw (gp, x, y) + +pointer gp # graphics descriptor +real x, y # offset from current position +real cx, cy + +begin + if (IS_INDEF(x) || IS_INDEF(y)) + call gadraw (gp, x, y) + else { + call gcurpos (gp, cx, cy) + if (IS_INDEF(cx) || IS_INDEF(cy)) + call gadraw (gp, INDEF, INDEF) + else + call gadraw (gp, cx + x, cy + y) + } +end |