aboutsummaryrefslogtreecommitdiff
path: root/src/graph/PS/drawpoint.ps
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-09-27 01:53:09 +0000
committerdos-reis <gdr@axiomatics.org>2009-09-27 01:53:09 +0000
commite8f38c351d90d6dea371a9ac15d2c4906bff9910 (patch)
tree97e4ca1d832f393d1540da11e902465f99b22346 /src/graph/PS/drawpoint.ps
parenta956f791537aa080285e6437a53fac69ff93b3b6 (diff)
downloadopen-axiom-e8f38c351d90d6dea371a9ac15d2c4906bff9910.tar.gz
Fix SF/2854105
* graph/PS/*.ps: New.
Diffstat (limited to 'src/graph/PS/drawpoint.ps')
-rw-r--r--src/graph/PS/drawpoint.ps16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/graph/PS/drawpoint.ps b/src/graph/PS/drawpoint.ps
new file mode 100644
index 00000000..4283ebaa
--- /dev/null
+++ b/src/graph/PS/drawpoint.ps
@@ -0,0 +1,16 @@
+% operand stack configuration in order to use psDrawPoint:
+% psDrawPoint
+% y0
+% x0
+% graphics-context dictionary
+% this draws a point at (x0, y0).
+
+/psDrawPoint
+ { gsave
+ newpath
+ yVal moveto
+ yVal lineto
+ begin installGC stroke end %%fills with foreground color
+ grestore }
+ def
+