386BSD 0.1 development
[unix-history] / usr / othersrc / public / ghostscript-2.4.1 / screen.ps
CommitLineData
9365b7f1
WJ
1% Test a tilted halftone screen.
2
34 0 { dup mul exch dup mul add 1 exch sub } setscreen
4
54 0
6 { exch abs exch abs 2 copy le { exch } if
7 exch 1 sub dup mul exch dup mul add 1 exch sub
8 } setscreen
9
1036 36 scale
110 1 9
12 { /y exch def
13 0 1 9
14 { /x exch def
15 x y moveto
16 1 0 rlineto 0 1 rlineto -1 0 rlineto closepath
17 y 10 mul x add 100 div setgray
18 fill
19 } for
20 } for
21
22showpage quit