Next: Make Mrs. Snowperson pregnant
Up: Homework 4: Snowpeople!
Previous: With a corn-cob pipe...
- 1.
- Add a new method called drawShirt that takes the usual
parameters and that draws some sort of T-shirt logo within
the bounding box. You can use any of the drawing commands, although
you might want to avoid drawString because it is not easy to
guarantee that the string will fit within the bounding box.
- 2.
- Modify drawSnowperson so that it invokes drawShirt
in order to emblazon something on the chest (middle
oval) of each snowperson.
Allen B. Downey
1999-09-29