From e8f38c351d90d6dea371a9ac15d2c4906bff9910 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 27 Sep 2009 01:53:09 +0000 Subject: Fix SF/2854105 * graph/PS/*.ps: New. --- src/graph/PS/drawlines.ps | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/graph/PS/drawlines.ps (limited to 'src/graph/PS/drawlines.ps') diff --git a/src/graph/PS/drawlines.ps b/src/graph/PS/drawlines.ps new file mode 100644 index 00000000..84d20894 --- /dev/null +++ b/src/graph/PS/drawlines.ps @@ -0,0 +1,22 @@ +% operand stack configuration in order to use psDrawLines: +% psDrawLines +% points[0].y +% points[0].x +% n +% ... +% points[n].y +% points[n].x +% graphics-context dictionary +% this draws lines connecting all the points. + +/psDrawLines + { gsave + newpath + yVal moveto + 1 sub { + yVal lineto + } repeat + begin installGC stroke end + grestore } + def + -- cgit v1.2.3