%! % procedures /pagebegin { /A exch def /x A 0 get def /y A 1 get def gsave 72 dup scale x y translate 0.5 72 div setlinewidth } def /pageend { grestore showpage } def % array [x y r theta]] /circle {8 dict begin /A exch def /x A 0 get def /y A 1 get def /r A 2 get def /theta A 3 get def /c 0 def /n 64 def newpath r c cos mul x add r c sin mul y add moveto n{ /c c theta n div add def r c cos mul x add r c sin mul y add lineto } repeat end} def % array [x y a b theta] /ellipse {9 dict begin /A exch def /x A 0 get def /y A 1 get def /a A 2 get def /b A 3 get def /theta A 4 get def /c 0 def /n 64 def newpath a c cos mul x add b c sin mul y add moveto n{ /c c theta n div add def a c cos mul x add b c sin mul y add lineto } repeat end} def % colors /black { 0 0 0 setrgbcolor }def /yellow { 1 1 0 setrgbcolor } def /red { 0.5 0 1 setrgbcolor } def /blue { 0 1 1 setrgbcolor } def /white { 1 1 1 setrgbcolor } def % Fonts /largefont { /Times-Roman findfont 0.32 scalefont setfont } def /normalfont { /Times-Roman findfont 0.22 scalefont setfont } def /smallfont { /Times-Roman findfont 0.16 scalefont setfont}def % rotate [x y r theta] /rotate{ 6 dict begin /A exch def /x A 0 get def /y A 1 get def /r A 2 get def /theta A 3 get def /alpha 90 theta sub 2 div def newpath x r moveto 2 r mul alpha sin alpha cos div mul r lineto stroke }def /polygon { 2 dict begin /poly exch def /n poly length def poly 0 get aload pop moveto 1 1 n 1 sub { /i exch def poly i get aload pop lineto } for end} def /rotation {7 dict begin /rotate exch def /n rotate length def /a 0 def n{ /theta rotate a get def /alpha 90 theta sub 2 div def /a a 1 add def newpath 2 alpha sin alpha cos div mul 1 moveto 0 -1 lineto stroke }repeat end}def /rays {7 dict begin /ray exch def /n ray length def /a 0 def n{ /theta ray a get def /a a 1 add def newpath theta cos theta sin moveto 0 0 lineto stroke }repeat end}def [2 9] pagebegin black [[-2 2] [3 2] [3 -2] [-2 -2]] polygon fill white [0 0 1 360] circle stroke 1 0 moveto -1 0 lineto stroke newpath -2 1 moveto 3 1 lineto stroke [0 15 30 45 60 75 90 135] rotation blue [0 15 30 45 60 75 90] rays pageend