aboutsummaryrefslogtreecommitdiff
path: root/src/graph/PS/fillwol.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/fillwol.ps
parenta956f791537aa080285e6437a53fac69ff93b3b6 (diff)
downloadopen-axiom-e8f38c351d90d6dea371a9ac15d2c4906bff9910.tar.gz
Fix SF/2854105
* graph/PS/*.ps: New.
Diffstat (limited to 'src/graph/PS/fillwol.ps')
-rw-r--r--src/graph/PS/fillwol.ps25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/graph/PS/fillwol.ps b/src/graph/PS/fillwol.ps
new file mode 100644
index 00000000..4980732b
--- /dev/null
+++ b/src/graph/PS/fillwol.ps
@@ -0,0 +1,25 @@
+% operand stack configuration in order to use psDrawFilled:
+% psFillwOL
+% XPoint[0].y
+% XPoint[0].x
+% n
+% ...
+% XPoint[n].y
+% XPoint[n].x
+% graphics-context dictionary
+% this draws lines connecting all the points and fills the
+% region with background color (default: 1, or white).
+
+/psFillwOutline
+ { gsave
+ newpath
+ yVal moveto
+ 1 sub {
+ yVal lineto
+ } repeat
+ closepath
+ begin installGC
+ gsave fill grestore %% fills with foreground color
+ 0 setgray stroke grestore end } %% outline it with black
+ def
+