ANSWERS TO POSTSCRIPT EXERCISES 

 1. (a) Draws an "X".
    (b) Same thing.
    (c) Same thing.

    
 2.    %!
       200 200 moveto 
       0 100 rlineto 
       150 300 moveto 
       100 0 rlineto
       stroke showpage

 3. (a)
       

    (b) PostScript error. Following the command "stroke" or "fill", the
        pen is picked up and turtle forgets its position. You need to 
        issue a moveto command to start drawing again.

 4. (a) You can avoid messy geometric calculations by using rotate.

       

    (b) This is a tricky one because we start drawing again while the
        net rotation is 90 degrees counterclockwise.
 
       


5.  There's alot to PostScript that you certainly don't need to worry about. This
    example uses "repeat" and "for" to loop, "arc" to draw circles segments, and
    "eofill" to alternately fills in the even and odd regions.