CS 110 Introduction to Computing

Project #5: Homage to Jackson Pollack


In this project you will be writing something like the homage to Mondrian that we did in class earlier this semester. However, this time the homage will be to Jackson Pollack. In particular, you will be using for and while loops to implement an applet that does something like Pollack's spatter paintings.

The interface to this applet should have two buttons -- one named "more spatters" and the other "restart". When you enter the applet, all you should see is a blank screen. Hit the more "more splatters" button and a single splatter will appear. Hit it again, more splatters (the rate of splatter increase is up to you), ... Note that it is OK for every button hit to result in a completely new splatter painting, indeed we have not yet covered in class how you might do anything else.

Hit the "restart" button and you are back to an empty canvas (i.e., no splatters).

Here are some example images from my reference implementation.


For this assignment, please use the following definition of a spatter.
A splatter is:

Use showStatus (described in lab 5) to show the number of spatters on your painting. For full credit, splatters should:

Hint -- you will need to use random numbers a lot. However, I recommend that you begin by just getting one splatter that meets the definition above (without any random numbers) to appear in your applet.


Due Date: November 2, at the beginning of class.
Submit:
Grading: Applet 100 pts

Notes

Recall that you can obtain the size of an applet by putting the following into your paint method:
int appX = (int) getSize().getWidth();
int appY = (int) getSize().getHeight();
Also recall that to get a random number between 40 and 100 you can use code like the following:
 (int) (Math.random()*60 + 40)