diff options
author | dos-reis <gdr@axiomatics.org> | 2009-09-27 01:53:09 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-09-27 01:53:09 +0000 |
commit | e8f38c351d90d6dea371a9ac15d2c4906bff9910 (patch) | |
tree | 97e4ca1d832f393d1540da11e902465f99b22346 /src/graph/PS/drawline.ps | |
parent | a956f791537aa080285e6437a53fac69ff93b3b6 (diff) | |
download | open-axiom-e8f38c351d90d6dea371a9ac15d2c4906bff9910.tar.gz |
Fix SF/2854105
* graph/PS/*.ps: New.
Diffstat (limited to 'src/graph/PS/drawline.ps')
-rw-r--r-- | src/graph/PS/drawline.ps | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/graph/PS/drawline.ps b/src/graph/PS/drawline.ps new file mode 100644 index 00000000..8294f15a --- /dev/null +++ b/src/graph/PS/drawline.ps @@ -0,0 +1,18 @@ +% operand stack configuration in order to use psDrawLine: +% psDrawLine +% y0 +% x0 +% y1 +% x1 +% graphics-context dictionary +% this draws a line from (x0, y0) to (x1, y1). + +/psDrawLine + { gsave + newpath + yVal moveto + yVal lineto + begin installGC stroke end + grestore } + def + |