blob: c4e5da7240b5d228dfa5efb2fabccb231e7c83d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
% operand stack configuration in order to use psColorPoly:
% psFillPoly
% XPoint[0].y
% XPoint[0].x
% n
% ...
% XPoint[n].y
% XPoint[n].x
% graphics-context dictionary
% this draws a polygon by connecting all the points and fills the
% region with foreground color
/psColorPoly
{ gsave
newpath
yVal moveto
1 sub {
yVal lineto
} repeat
closepath
fill %% fills with foreground color
grestore }
def
|