Debian Codegraph @

tests/linux.x86/ps_user_shapes_dot.ps

raw
1 %!PS-Adobe-3.0
2 %%Creator: graphviz version 2.43.20200403.0503 (20200403.0503)
3 %%Title: G
4 %%Pages: (atend)
5 %%BoundingBox: (atend)
6 %%EndComments
7 save
8 %%BeginProlog
9 /DotDict 200 dict def
10 DotDict begin
11
12 /setupLatin1 {
13 mark
14 /EncodingVector 256 array def
15 EncodingVector 0
16
17 ISOLatin1Encoding 0 255 getinterval putinterval
18 EncodingVector 45 /hyphen put
19
20 % Set up ISO Latin 1 character encoding
21 /starnetISO {
22 dup dup findfont dup length dict begin
23 { 1 index /FID ne { def }{ pop pop } ifelse
24 } forall
25 /Encoding EncodingVector def
26 currentdict end definefont
27 } def
28 /Times-Roman starnetISO def
29 /Times-Italic starnetISO def
30 /Times-Bold starnetISO def
31 /Times-BoldItalic starnetISO def
32 /Helvetica starnetISO def
33 /Helvetica-Oblique starnetISO def
34 /Helvetica-Bold starnetISO def
35 /Helvetica-BoldOblique starnetISO def
36 /Courier starnetISO def
37 /Courier-Oblique starnetISO def
38 /Courier-Bold starnetISO def
39 /Courier-BoldOblique starnetISO def
40 cleartomark
41 } bind def
42
43 %%BeginResource: procset graphviz 0 0
44 /coord-font-family /Times-Roman def
45 /default-font-family /Times-Roman def
46 /coordfont coord-font-family findfont 8 scalefont def
47
48 /InvScaleFactor 1.0 def
49 /set_scale {
50 dup 1 exch div /InvScaleFactor exch def
51 scale
52 } bind def
53
54 % styles
55 /solid { [] 0 setdash } bind def
56 /dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
57 /dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
58 /invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
59 /bold { 2 setlinewidth } bind def
60 /filled { } bind def
61 /unfilled { } bind def
62 /rounded { } bind def
63 /diagonals { } bind def
64 /tapered { } bind def
65
66 % hooks for setting color
67 /nodecolor { sethsbcolor } bind def
68 /edgecolor { sethsbcolor } bind def
69 /graphcolor { sethsbcolor } bind def
70 /nopcolor {pop pop pop} bind def
71
72 /beginpage { % i j npages
73 /npages exch def
74 /j exch def
75 /i exch def
76 /str 10 string def
77 npages 1 gt {
78 gsave
79 coordfont setfont
80 0 0 moveto
81 (\() show i str cvs show (,) show j str cvs show (\)) show
82 grestore
83 } if
84 } bind def
85
86 /set_font {
87 findfont exch
88 scalefont setfont
89 } def
90
91 % draw text fitted to its expected width
92 /alignedtext { % width text
93 /text exch def
94 /width exch def
95 gsave
96 width 0 gt {
97 [] 0 setdash
98 text stringwidth pop width exch sub text length div 0 text ashow
99 } if
100 grestore
101 } def
102
103 /boxprim { % xcorner ycorner xsize ysize
104 4 2 roll
105 moveto
106 2 copy
107 exch 0 rlineto
108 0 exch rlineto
109 pop neg 0 rlineto
110 closepath
111 } bind def
112
113 /ellipse_path {
114 /ry exch def
115 /rx exch def
116 /y exch def
117 /x exch def
118 matrix currentmatrix
119 newpath
120 x y translate
121 rx ry scale
122 0 0 1 0 360 arc
123 setmatrix
124 } bind def
125
126 /endpage { showpage } bind def
127 /showpage { } def
128
129 /layercolorseq
130 [ % layer color sequence - darkest to lightest
131 [0 0 0]
132 [.2 .8 .8]
133 [.4 .8 .8]
134 [.6 .8 .8]
135 [.8 .8 .8]
136 ]
137 def
138
139 /layerlen layercolorseq length def
140
141 /setlayer {/maxlayer exch def /curlayer exch def
142 layercolorseq curlayer 1 sub layerlen mod get
143 aload pop sethsbcolor
144 /nodecolor {nopcolor} def
145 /edgecolor {nopcolor} def
146 /graphcolor {nopcolor} def
147 } bind def
148
149 /onlayer { curlayer ne {invis} if } def
150
151 /onlayers {
152 /myupper exch def
153 /mylower exch def
154 curlayer mylower lt
155 curlayer myupper gt
156 or
157 {invis} if
158 } def
159
160 /curlayer 0 def
161
162 %%EndResource
163 %%EndProlog
164 %%BeginSetup
165 14 default-font-family set_font
166 % /arrowlength 10 def
167 % /arrowwidth 5 def
168
169 % make sure pdfmark is harmless for PS-interpreters other than Distiller
170 /pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
171 % make '<<' and '>>' safe on PS Level 1 devices
172 /languagelevel where {pop languagelevel}{1} ifelse
173 2 lt {
174 userdict (<<) cvn ([) cvn load put
175 userdict (>>) cvn ([) cvn load put
176 } if
177
178 %%EndSetup
179 setupLatin1
180 %%Page: 1 1
181 %%PageBoundingBox: 36 36 308 309
182 %%PageOrientation: Portrait
183 0 0 1 beginpage
184 gsave
185 36 36 272 273 boxprim clip newpath
186 1 1 set_scale 0 rotate 40 40 translate
187 % n
188 gsave
189 1 setlinewidth
190 0 0 0 nodecolor
191 newpath 264 265 moveto
192 0 265 lineto
193 0 0 lineto
194 264 0 lineto
195 closepath stroke
196 gsave -174 -315 translate newpath
197 %!PS-Adobe-3.0
198 %%Page: 1 1
199 %%PageBoundingBox: 175 316 437 579
200 %%BoundingBox: 175 316 437 579
201
202 /strdimensions {
203 gsave
204 newpath
205 0 0 moveto
206 false charpath flattenpath pathbbox
207 exch 4 -1 roll sub
208 3 1 roll exch sub
209 grestore
210 } def
211
212 /die1_data [
213 % [50 33 33 48 67 67 50]
214 % [27 7 31 34 30 5 0]
215 [50 33 33 48 67 67 50]
216 [27 7 31 34 30 5 0]
217 [
218 [50 30 2 1 0]
219 [54 21 1.2 2 0]
220 [63 11 1.2 2 0]
221 [46 21 1.2 2 0]
222 [46 7 1.2 2 0]
223 ]
224 ]def
225
226 /die2_data [
227 % [15 0 0 19 40 40 15]
228 % [25 9 31 33 27 2 0]
229 [15 0 0 19 40 40 15]
230 [25 7 31 33 27 0 -3]
231 [
232 [18 29 2 1 0]
233 [28 12 2 2 0]
234 [21 4 2 2 0]
235 [21 19 2 2 0]
236 [35 5 2 2 0]
237 [35 20 2 2 0]
238 [4 10 1.2 2 0]
239 [11.5 20.5 1.4 2 0]
240 ]
241 ] def
242
243 % cx cy rx ry ang mk_ellipse -
244 /mk_ellipse {
245 /ang exch def
246 /ry exch def
247 /rx exch def
248 /cy exch def
249 /cx exch def
250
251 gsave
252 newpath
253 cx cy translate
254 ang rotate
255 rx ry scale
256 0 0 1 0 360 arc
257 fill
258 grestore
259 } def
260
261 /fill_die {
262 1 setgray
263 newpath
264 xval 1 get yval 1 get moveto
265 xval 2 get yval 2 get lineto
266 xval 3 get yval 3 get lineto
267 xval 4 get yval 4 get lineto
268 xval 5 get yval 5 get lineto
269 xval 6 get yval 6 get lineto
270 closepath
271 fill
272 } def
273
274 /outline_die {
275 0 setgray
276 newpath
277 xval 1 get yval 1 get moveto
278 xval 2 get yval 2 get lineto
279 xval 3 get yval 3 get lineto
280 xval 4 get yval 4 get lineto
281 xval 5 get yval 5 get lineto
282 xval 6 get yval 6 get lineto
283 closepath
284 xval 0 get yval 0 get moveto
285 xval 2 get yval 2 get lineto
286 xval 0 get yval 0 get moveto
287 xval 4 get yval 4 get lineto
288 xval 0 get yval 0 get moveto
289 xval 6 get yval 6 get lineto
290 stroke
291 } def
292
293 /do_spot {
294 aload pop
295 mk_ellipse
296 } def
297
298 /spot_die {
299 spots {
300 do_spot
301 } forall
302
303 } def
304
305 /do_die {
306 dup 0 get /xval exch def
307 dup 1 get /yval exch def
308 2 get /spots exch def
309 fill_die
310 outline_die
311 spot_die
312 } def
313
314 /dicedict 32 dict def
315
316 /do_dice {
317 save
318 mark
319 -94 -45 translate
320 2.8 2.8 scale
321 dicedict begin
322 die1_data do_die
323 die2_data do_die
324 end
325 cleartomark
326 restore
327 } def
328
329 /outsidecircletext
330 { circtextdict begin
331 /radius exch def
332 /centerangle exch def
333 /ptsize exch def
334 /str exch def
335 /xradius radius ptsize 4 div add def
336
337 gsave
338 centerangle str findhalfangle add rotate
339
340 str
341 { /charcode exch def
342 (A) dup 0 charcode put outsideplacechar
343 } forall
344
345 grestore
346 end
347 } def
348
349
350 /insidecircletext
351 { circtextdict begin
352 /radius exch def
353 /centerangle exch def
354 /ptsize exch def
355 /str exch def
356 /xradius radius ptsize 4 div add def
357
358 /radius radius charheight add def
359
360 gsave
361 centerangle str findhalfangle sub rotate
362
363 str
364 { /charcode exch def
365 (A) dup 0 charcode put insideplacechar
366 } forall
367
368 grestore
369 end
370 } def
371
372 /circtextdict 16 dict def
373 circtextdict begin
374 /findhalfangle
375 { stringwidth pop 2 div
376 2 xradius mul pi mul div 360 mul
377 } def
378
379 /outsideplacechar
380 { /char exch def
381 /halfangle char findhalfangle def
382 gsave
383 halfangle neg rotate
384 radius 0 translate
385 -90 rotate
386 char stringwidth pop 2 div neg 0 moveto
387 char show
388 grestore
389 halfangle 2 mul neg rotate
390 } def
391
392 /insideplacechar
393 { /char exch def
394 /halfangle char findhalfangle def
395 gsave
396 halfangle rotate
397 radius 0 translate
398 90 rotate
399 char stringwidth pop 2 div neg 0 moveto
400 char show
401 grestore
402 halfangle 2 mul rotate
403 } def
404
405 /charheight
406 {
407 newpath
408 0 0 moveto
409 (A) true charpath flattenpath pathbbox
410 exch 4 -1 roll pop pop
411 exch sub
412 } def
413
414 /pi 3.1415923 def
415 end
416
417 /makecircle {
418 /crad exch def
419 /cy exch def
420 /cx exch def
421 newpath
422 cx cy crad 0 360 arc stroke
423 } def
424
425 /centertext {
426 /str exch def
427
428 str strdimensions
429 2 div exch 2 div
430 4 -1 roll exch sub
431 3 1 roll sub
432 moveto str show
433 } def
434
435 /ptSize 31 def
436 /Radius 108 def
437
438 /Helvetica-Bold findfont ptSize scalefont setfont
439
440 306 448 translate
441
442 % 0 0 Radius makecircle
443 % 0 0 1 makecircle
444
445 (REUSABLE CODE) ptSize 90 Radius outsidecircletext
446
447 (BETTER PROGRAMS NOW) ptSize 270 Radius insidecircletext
448
449 do_dice
450
451 /Helvetica-Bold findfont 70 scalefont setfont
452
453 gsave
454 1 setgray
455 2 -52 (C++) centertext
456 grestore
457 gsave
458 1 setgray
459 -2 -52 (C++) centertext
460 grestore
461 gsave
462 1 setgray
463 -2 -48 (C++) centertext
464 grestore
465 gsave
466 1 setgray
467 2 -48 (C++) centertext
468 grestore
469 0 setgray
470 0 -50 (C++) centertext
471
472 showpage
473
474 grestore
475 grestore
476 endpage
477 showpage
478 grestore
479 %%PageTrailer
480 %%EndPage: 1
481 %%Trailer
482 %%Pages: 1
483 %%BoundingBox: 36 36 308 309
484 end
485 restore
486 %%EOF