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 paintFace that takes the same parameters as paintSnowperson, 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 paintSnowperson so that it invokes paintFace in order to fill in the top oval (the face).



Allen B. Downey
1999-02-22