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