Debian Codegraph @

tests/nshare/ps_user_shapes_dot.ps

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