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/drawcolor.ps | |
parent | a956f791537aa080285e6437a53fac69ff93b3b6 (diff) | |
download | open-axiom-e8f38c351d90d6dea371a9ac15d2c4906bff9910.tar.gz |
Fix SF/2854105
* graph/PS/*.ps: New.
Diffstat (limited to 'src/graph/PS/drawcolor.ps')
-rw-r--r-- | src/graph/PS/drawcolor.ps | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/graph/PS/drawcolor.ps b/src/graph/PS/drawcolor.ps new file mode 100644 index 00000000..415edf34 --- /dev/null +++ b/src/graph/PS/drawcolor.ps @@ -0,0 +1,22 @@ +% operand stack configuration in order to use psDrawColor: +% psDraw +% vlist[0].y +% vlist[0].x +% n +% ... +% vlist[n].y +% vlist[n].x +% graphics-context dictionary +% to draw lines connecting points in vlist[0] to vlist[n] + +/psDrawColor + { gsave + newpath + yVal moveto %% set currentpoint + 1 sub { %% loop to draw lines. + yVal lineto + } repeat + stroke %% draw in foreground color + grestore } + def + |