openobject.org

S3228366 Processing sketch - Project 4 - Fireworks

From Physical Programming

Below are 3 screen grabs of my finished processing sketch. Basically whent eh program runs a 1000x1000 black screen is created that when you click within it creates a 'firework' of balls that drop out of the screen. Multiple clicks create multiple fireworks and the color changes with each click.

Image:S3228366_firework1.jpg Image:S3228366_firework2.jpg Image:S3228366_firework3.jpg

The actual file is uploaded below, with each line of code having an explaination written beside it in comments,

eg. code (code, code); // comment comment comment


Image:S3228366 fireworks.zip

Thus, to understand the code please read the comment to see what each line is for and what the line does for the sketch.