fall.04: Introduction to Computational Media

These files were created with Processing for my Introduction to Computational Media Class. You will need Java installed in your browser to view these applets. For those of you looking at the code: some of these files were created in Processing 0067 and others in Processing 0074, so beware of syntax changes. Some of these applets are very large and processor intensive, so consider yourself warned :)
Collision

// Collision Detection Final

With the help of Jobe Makar's Macromedia Flash MX Game Design Demystified, I have created a time-independent collision detection between 3 balls. The code tracks the x and y ball movement of each ball, compares the x and y positions to the last position to determine for time, and then uses the quadratic equation to assure that the radii of two balls haven't intersected. It's not quite perfect (the balls sometimes bounce at opposite angles), but it's a nice step for future game design.

View Applet

Graffiti

// Graffiti

Creating a grid of circles through for loops.

View Applet

Graffiti

// Graffiti

Experimenting with theta.

View Applet

Asteroid

// Asteroid

Here I created a "fish" the relocates itself to the opposite side of the applet once it goes off-screen.

View Applet

Creating

// Creating Noise

Here's another example using the set() function.

View Applet

Creating

// Creating Noise

I was struggling with pixel drawing with the set() function. I finally got it to work (I was introducing floats rather than integers).

View Applet

Organic

// Organic

Here I played around with the Meander class by Robert Hodgin.

View Applet

Seashell

// Seashell

This example features functions.

View Applet

Sine

// Sine Effect

This is a simple exercise trying out the sin() function.

View Applet

Snowflakes

// Snowflakes

Drag the mouse cursor to apply wind to the snowflakes.

View Applet

Cube

// Cube Art

This is similar to the pinwheel, only this time using rectangles.

View Applet

Pinwheel

// Pinwheel

Drag the mouse cursor over this applet to create variations in the shape.

View Applet

Fibonacci

// Fibonacci Smiley

This applet creates a smiley face class and arranges the class instances into a Fibonacci sequence.

View Applet

Random

// Random Placement

This applet places a rectangle based on a sine curve. A color fill is achieved with a script that randomizes the RGB values of the rectangular shape.

View Applet

Hello

// Hello World

This simple applet writes "Hello World" in Bodoni.

View Applet

Rich Hauck at the Interactive Telecommunications Program at New York University