next up previous
Next: Draw the snowperson American Up: Assignment 4: Snowpeople! Previous: Make a new project

Make a snowperson

1.
Create a new method named paintSnowperson that takes the same arguments as paintRings. Instead of drawing Olympic rings, though, it should draw three ovals, stacked on top of each other like a snowperson.
2.
Modify the main method so that it determines the size of the window and calls the paintSnowperson method. The bounding box of the snowperson should be the same height as the window, but only one-third of the width, and it should be centered.

3.
As you resize the screen, your program should redraw the snowperson so that it touches the top and bottom of the screen, and the three ovals touch, and the proportion of the three ovals should stay the same.



Allen B. Downey
2/25/1998