aboutsummaryrefslogtreecommitdiff
path: root/src/graph/PS/colorwol.ps
blob: 3e9cd30f1faea81a3a2428dac72f1af64febe854 (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 psDrawFilled:
%		psFillwOL
%		XPoint[0].y
%		XPoint[0].x
%		n
%		...
%		XPoint[n].y
%		XPoint[n].x
%		graphics-context dictionary
% this draws lines connecting all the points and fills the
% region with background color (default: 1, or white).

/psColorwOutline
        {	gsave
                newpath
                yVal moveto
                1 sub {
                        yVal lineto
                } repeat
		closepath
		begin gsave fill grestore	%% fills with foreground color
		0 setgray stroke grestore end }	%% outline it with black
        def