Ticket #64648: Example_4_21.eps

File Example_4_21.eps, 1023 bytes (added by arvas512, 2 years ago)

Eps, based on example 4.21, from Postscript Reference Manual, page 255

Line 
1%!PS-Adobe-3.0 EPSF-3.0
2%%BoundingBox:  0 0 400 500
3%%%%%%%%%%%%%%%% Based on example 4.21, from Postscript Reference Manual, page 255
40 100 translate
5
6
7/Star4 
8<< 
9   /PatternType 1          % Tiling pattern
10   /PaintType  1           % Colored
11   /TilingType 1
12   /BBox [0 0 60 60]
13   /XStep 60
14   /YStep 60
15
16   /star
17   { gsave 
18     0 12 moveto
19     4 {144 rotate 0 12 lineto} repeat
20     closepath fill
21     grestore } bind
22
23  /PaintProc
24  { begin                  % Push pattern on dictionary stack
25    1 0 0 setrgbcolor      % Set color for dark gray stars
26    15   15 translate star
27    30   30 translate star
28    0.9 setgray            % Set color for light gray stars
29   -30   0 translate star
30    30 -30 translate star
31    end } bind
32>>
33matrix 
34makepattern
35def
36
37
38/Pattern setcolorspace 
39Star4 setcolor
40120 120 184 120 rectfill
41
420.0 setgray 
43120 120 184 120 rectstroke
44/Times-Roman 270 selectfont
45160 100 translate
460.5 setgray 
470 0 moveto (A) show
48
49
50/Pattern setcolorspace 
51Star4 setcolor
520 0 moveto (A) show
53
54
55