blob: 415edf34ecc1939199d46f8b89d2b57969a386d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|