-
Notifications
You must be signed in to change notification settings - Fork 2
/
clamshell.eps
120 lines (107 loc) · 3.09 KB
/
clamshell.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 EPSF-3.0
%%BoundingBox: 0 0 850 850
/LIGHT_TRAPAZOID {
4 dict begin % 4 variable in local scope
/level exch def % grab level off the stack
/len exch def % grab len off the stack
/angle 18 def
/short_len len 1 2 angle sin mul sub mul def
level 0 gt {
gsave
54 rotate
short_len 0 translate
54 neg rotate
short_len level 1 sub LIGHT_TRAPAZOID
grestore
gsave
108 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub LIGHT_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub LIGHT_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub DARK_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub DARK_TRAPAZOID
grestore
gsave
36 rotate
short_len level 1 sub DARK_TRAPAZOID
0 short_len translate
36 neg rotate
short_len level 1 sub LIGHT_TRAPAZOID
0 short_len translate
36 neg rotate
short_len level 1 sub LIGHT_TRAPAZOID
grestore
} {
newpath
0 0 moveto
0 len rlineto
len angle cos mul len angle sin mul neg rlineto
0 len 2 len angle sin mul mul sub neg rlineto
closepath
0 setgray
0.5 setlinewidth
stroke
} ifelse
end
} def
/DARK_TRAPAZOID {
4 dict begin % 4 variable in local scope
/level exch def % grab level off the stack
/len exch def % grab len off the stack
/angle 18 def
/short_len len 1 2 angle sin mul sub mul def
level 0 gt {
gsave
54 rotate
short_len 0 translate
54 neg rotate
short_len level 1 sub DARK_TRAPAZOID
grestore
gsave
108 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub LIGHT_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub LIGHT_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub DARK_TRAPAZOID
144 neg rotate
0 short_len translate
180 rotate
short_len level 1 sub LIGHT_TRAPAZOID
grestore
} {
newpath
0 0 moveto
0 len rlineto
len angle cos mul len angle sin mul neg rlineto
0 len 2 len angle sin mul mul sub neg rlineto
closepath
gsave
0.5 setgray
fill
grestore
0 setgray
0.5 setlinewidth
stroke
} ifelse
end
} def
1 setlinejoin
50 100 translate
500 5 DARK_TRAPAZOID