next up previous
Next: Give the Snowpeople T-shirts Up: Homework 4: Snowpeople! Previous: Draw the snowperson American

With a corn-cob pipe...

1.
Write a method called drawFace that takes the same number and type of parameters as drawSnowperson, and that draws a simple face within the given bounding box. Two eyes will suffice, but you can get as elaborate as you like.

Again, as you resize the window, the proportions of the face should not change, and all the features should fit within the oval (with the possible exception of ears).

2.
Modify drawSnowperson so that it invokes drawFace in order to fill in the top oval (the face). The bounding box you pass to drawFace should be the same as the bounding box that created the face oval.



Allen B. Downey
1999-09-29