diff options
Diffstat (limited to 'src/graph/PS/drwfilled.ps')
-rw-r--r-- | src/graph/PS/drwfilled.ps | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/graph/PS/drwfilled.ps b/src/graph/PS/drwfilled.ps new file mode 100644 index 00000000..9fc41634 --- /dev/null +++ b/src/graph/PS/drwfilled.ps @@ -0,0 +1,23 @@ +% operand stack configuration in order to use psDrawFilled: +% psDrawFilled +% vlist[0].y +% vlist[0].x +% n +% ... +% vlist[n].y +% vlist[n].x +% graphics-context dictionary +% this draws lines connecting all the points and fills the +% region with background color (default: 1, or white). + +/psDrawFilled + { gsave + newpath + yVal moveto + 1 sub { + yVal lineto + } repeat + begin installGC fill end %% fills with foreground color + grestore } + def + |