aboutsummaryrefslogtreecommitdiff
path: root/src/graph/PS/drawline.ps
blob: 8294f15aca095ecf9604d134b6d72ab479e7be46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% operand stack configuration in order to use psDrawLine:
%		psDrawLine
%		y0
%		x0
%		y1
%		x1
%		graphics-context dictionary
% this draws a line from (x0, y0) to (x1, y1).

/psDrawLine
        {	gsave
                newpath
                yVal moveto
                yVal lineto
		begin installGC stroke end
		grestore }
        def