This repository has been archived by the owner on Feb 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathab.eps
120 lines (100 loc) · 1.57 KB
/
ab.eps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 5 5 400 600
%%LanguageLevel: 2
%This is an attempt to produce an 2D tile
%based on empty square, filled square,
%a square filled with a quarter of a circle
%and a square filled with the complement of a
%square of a circle
%The tiles may be rotated with 90 degres
/s1{
0 0 5 5 rectstroke
}def
/q1{
gsave
2.5 2.5 moveto
0 0 lineto
stroke
grestore
}def
/q2{
gsave
2.5 2.5 moveto
5 0 lineto
stroke
grestore
}def
/q3{
gsave
2.5 2.5 moveto
0 5 lineto
stroke
grestore
}def
/q4{
gsave
2.5 2.5 moveto
5 5 lineto
stroke
grestore
}def
/q1N{
gsave
2.5 2.5 moveto
2.5 0 lineto
stroke
grestore
}def
/q2N{
gsave
2.5 2.5 moveto
2.5 5 lineto
stroke
grestore
}def
/q3N{
gsave
2.5 2.5 moveto
5 2.5 lineto
stroke
grestore
}def
/q4N{
gsave
2.5 2.5 moveto
0 2.5 lineto
stroke
grestore
}def
/sym [ //q1 //q1N //q2 //q2N //q3 //q4 //q3N //q4N //s1 ] def
/range sym length def
/rNum {rand range mod} def
/drawsym {
/k exch def
sym k get exec
k 1 8{
/j exch def
sym j get exec
}for
}def
%Initial setup
5 5 scale
0 setlinewidth
2 2 translate
%Start drawing
%horizontal boxes >> 15
%veritcal boxes >> 22
23 {
0 1 14 {
% select a random symbol to be drawn
% /i exch def
% i drawsym
rNum drawsym
s1
5 0 translate
} for
%go up one row
-75 5 translate
} repeat
showpage
%%EOF