openobject.org

S3149209 Processing sketch - PROJECT 3

From Physical Programming

BOUNCY BALLS

by Todd DAWSON

For my "Processing" sketch i decided to try something different to my "Pure Data Patch"

media:S3149209-ToddDAWSON-Processing_sketch_bouncy_balls.zip

My "Processing" sketch creates 6 ellipses all the same size and starts them off at 6 different co-ordinates within the created window. They're then free to 'bounce' around within the window. Each ball has a restriction on it to keep it contained within the window. I used a new HSB colour mode that i discovered on another online sketch to run the background through the colour spectrum.

enjoy :D


A full line by line explanation of my "Processing Sketch" is incorporated throughout the *.pde file



If i was to play with this project further i would have the balls collide with one another, similar to this example of "circle collision" from "processing.org"

http://processing.org/learning/topics/circlecollision.html


References:

http://processing.org/reference/colorMode_.html

http://processing.org/learning/topics/bounce.html

http://andybest.net/2009/02/processing-sketches-in-a-tweet/