-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathce-example.ps
More file actions
219 lines (195 loc) · 7.12 KB
/
ce-example.ps
File metadata and controls
219 lines (195 loc) · 7.12 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
% TCM arguments file for custom element example
/args { null % leave this line intact
% template changes
/TCbc /LightGrey arg % change to a lighter background
/Ct [/T10] arg % change caption to custom text element 10
% custom text element T12 (dark blue TCM title)
/T12s (Test Card Maker) arg % text string
/T12f /Times,BoldItalic arg % font name
/T12c /MidnightBlue arg % colour
/T12h Gsz 3 div arg % height
/T12y TCh 0.8 xGsz sub arg % horizontal centre
/T12z 30 arg % z-index
% custom shape element S12 (sky blue filled ellipse with dark green stroke)
/S12s /Ellipse arg % shape
/S12c /LightSkyBlue arg % fill colour
/S12k /ForestGreen arg % stroke colour
/S12h 0.6 xGsz arg % height
/S12w 5 xGsz arg % width
/S12y T12y arg % horizontal centre
/S12t 2 lines arg % stroke thickness
/S12d [5 xGlw Glw] arg % stroke dash
/S12z 30 arg % z-index
% custom shape element S20 (green filled Reuleaux triangles)
/S20s /Polygon arg % shape
/S20x Gsz arg % horizontal centre
/S20y Gsz arg % vertical centre
/S20h Gsz arg % height
/S20w Gsz arg % width
/S20n 3 arg % number of sides
/S20r true arg % Reuleaux polygon curve sides
/S20a 15 arg % rotate anticlockwise
/S20c /Green arg % fill colour
/S20k null arg % no stroke
/S20q /VB arg % mirror in top quadrants
/S20z 30 arg % z-index
% custom shape element S15 (yellow stroked circle)
/S15s /Circle arg % shape
/S15k /Yellow arg % stroke colour
/S15c null arg % no fill
/S15h 6 xGsz arg % diameter
/S15t CClw mul2 arg % stroke thickness
/S15z 10 arg % z-index
% custom shape element S14 (red stroked polygon)
/S14s /Polygon arg % shape
/S14n 11 arg % number of sides
/S14k /red arg % stroke colour
/S14c null arg % no fill
/S14h S15h 1.01 mul arg % height
/S14w S14h arg % width
/S14y TCy 1.007 mul arg % vertical centre
/S14t 1 lines arg % stroke thickness
/S14z 20 arg % z-index
/S14 /S15 merge % merge in shape S15 args
% custom image element I11 (PNG8: 1965 curved text)
/I11f (assets/general/CE/1965.png) arg % image filename
/I11y TCy 1.2 xGsz add arg % vertical centre
/I11w 5.3 xGsz arg % width
/I11h -1 arg % height
/I11z 10 arg % z-index
% custom image element I1 (PNG24: The Magic Roundabout)
/I1f (assets/general/CE/Magic-Roundabout.png) arg % image filename
/I1h CCr mul2 CClw sub arg % image diameter
/I1w 0 arg % circle
/I1z 10 arg % z-index
% custom image element I2 (EPS: Art Nouveau by Dan X. Solo)
/I2f (assets/general/CE/ArtNouveauCornerOrnament-DXSolo.eps) arg % image filename
/I2x 3.25 xGsz arg % horizontal centre
/I2y 6.75 xGsz arg % vertical centre
/I2w 1.5 xGsz arg % width
/I2h I2w arg % height
/I2q /NHVB arg % mirror in other quadrants
/I2z 10 arg % z-index
% custom text element T10 (blue block-inverted CE caption with beige background)
/T10s (Custom Elements) arg % text string
/T10f /Helvetica-Bold arg % font name
/T10h 0.4 xGsz arg % height
/T10w 5 xGsz arg % width
/T10p 0.1 arg % block padding
/T10o 1.2 arg % horizontal block padding multiplier
/T10y Cy arg % vertical centre
/T10a /J arg % alignment
/T10c /Blue arg % colour
/T10i true arg % block-inverted
/T10r 0.15 arg % block corner radius
/T10b /Beige arg % background colour
/T10v 0.5 arg % background bleed
/T10d T10r arg % background corner radius
/T10z 10 arg % z-index
% custom image element I4 (PNG8: Florence)
/I4f (assets/general/CE/Florence.png) arg % image filename
/I4x 2.9 xGsz arg % horizontal centre
/I4y 1.4 xGsz arg % vertical centre
/I4h 2.4 xGsz arg % height
/I4w -1 xGsz arg % width auto
/I4z 31 arg % z-index
% custom image element I5 (PNG8: Dougal)
/I5f (assets/general/CE/Dougal.png) arg % image filename
/I5x 1.8 xGsz arg % horizontal centre
/I5y 0.95 xGsz arg % vertical centre
/I5h 1.3 xGsz arg % height
/I5w -1 xGsz arg % width auto
/I5z 30 arg % z-index
% custom image element I6 (PNG8: Dylan)
/I6f (assets/general/CE/Dylan.png) arg % image filename
/I6x 1.2 xGsz arg % horizontal centre
/I6y 1.5 xGsz arg % vertical centre
/I6h 2.7 xGsz arg % height
/I6w -1 arg % width auto
/I6z 31 arg % z-index
% custom image element I7 (PNG8: Ermintrude)
/I7f (assets/general/CE/Ermintrude.png) arg % image filename
/I7x TCw 1.9 xGsz sub arg % horizontal centre
/I7y 1.4 xGsz arg % vertical centre
/I7w 3.8 xGsz arg % width
/I7h -1 arg % height auto
/I7z 29 arg % z-index
% custom image element I8 (PNG8: Brian)
/I8f (assets/general/CE/Brian.png) arg % image filename
/I8x TCw 1.4 xGsz sub arg % horizontal centre
/I8y 1.1 xGsz arg % vertical centre
/I8h 1.6 xGsz arg % height
/I8w -1 arg % width auto
/I8z 31 arg % z-index
% custom image element I9 (PNG8: Zebedee)
/I9f (assets/general/CE/Zebedee.png) arg % image filename
/I9x TCw 1.3 xGsz sub arg % horizontal centre
/I9y 1.9 xGsz arg % vertical centre
/I9h 1.9 xGsz arg % height
/I9w -1 xGsz arg % width auto
/I9z 30 arg % z-index
% custom shape element S3 (dark grey stroked rectangles)
/S3s /Rectangle arg % shape
/S3k /DarkGrey arg % stroke colour
/S3c null arg % no fill
/S3x PPx arg % horizontal centre
/S3h 3 xGsz arg % height
/S3w Gsz arg % width
/S3t Glw arg % stroke thickness
/S3j /R arg % rounded corners
/S3q /NH arg % mirror horizontally
/S3z 20 arg % z-index
% custom shape elements S5-6 (red & cyan filled triangles)
/S5s /Polygon arg % shape
/S5n 3 arg % number of sides
/S5a 90 arg % rotate anticlockwise
/S5c /Red arg % fill colour
/S5k null arg % no stroke
/S5h 0.52 xGsz arg % height
/S5w S5h arg % width
/S5x S5w div2 arg % horizontal centre
/S5y TCy arg % vertical centre
/S5t 1 lines arg % stroke thickness
/S5q /NH arg % mirror horizontally
/S5z 10 arg % z-index
/S6s /P arg % shape
/S6c /Cyan arg % fill colour
/S6a 180 arg % rotate anticlockwise
/S6x TCx arg % horizontal centre
/S6y S5x arg % vertical centre
/S6q /NV arg % mirror vertically
/S6 /S5 merge % merge in shape S5 args
% custom shape elements S1 (red stroked lines)
/S1s /Line arg % shape
/S1k /Red arg % stroke colour
/S1c null arg % no fill
/S1x Gsz arg % horizontal centre
/S1h Gsz arg % height
/S1a 90 arg % rotate anticlockwise
/S1t Glw arg % stroke thickness
/S1q /NH arg % mirror horizontally
/S1z 10 arg % z-index
% custom shape element S10 (chocolate brown stroked rectangle)
/S10s /Rectangle arg % shape
/S10k /Chocolate arg % stroke colour
/S10c null arg % no fill
/S10h 8 xGsz arg % height
/S10w 11 xGsz arg % width
/S10t Glw arg % stroke thickness
/S10z 20 arg % z-index
% custom text elements T101-580 (border decoration)
/T100f /ZapfDingbats arg % font name
/T100z 0 arg % z-index
100 [[0 0 Bw TCh] [TCw Bw sub 0 TCw TCh] [Bw 0 TCw Bw sub Bw] [Bw TCh Bw sub TCw Bw sub TCh]] { % each side
TCh TCw TCh add Bw mul2 sub div 240 mul round cvi % num dingbats in each vertical border
1 index dup 0 get 0 ne exch 2 get TCw ne and { 240 exch sub } if % horizontal border (480 total)
exch bboxi 3 1 roll { % each element (point separated)
1 add (T) 1 index cvas cat % text element number
dup (h) cat rand 13 mod 10 add 100 div xGsz arg % height (empirical max 0.22 xGsz)
dup (s) cat (^_`acdef) rand 1 index length mod get chr arg % dingbat
dup (c) cat [/yellow /cyan /green /magenta /red /blue] rand 1 index length mod get arg % colour
dup (x) cat 3 index aload pop randp 3 index (y) cat exch arg arg % point
/T100 merge % merge in T100 args
} repeat exch pop
} forall pop
} def % leave this line intact