Processing Sketches

Collection of interactive Processing sketches and small programs, mostly to test out new ideas or provide a diversion and something to write about. This is where good ideas get their start before graduating into a larger project, and bad ideas get burried.

Click on the sketch to see it in action!

Blob 2014-11

ERROR: JavaScript is turned off or your browser does not support the canvas tag.

A small physically-based blob. Soft body simulation using a Verlet-based mass-spring system. Try dragging them around.

Spheres 2014-01

ERROR: JavaScript is turned off or your browser does not support the canvas tag.

Based on Processing.js's header sketch (and Casey Reas' adaptation of it), this sketch features smart fading based on window size and a simple mass-spring system. Use your mouse to drag the spheres around.

Cursor Thief 2010-08

ERROR: JavaScript is turned off or your browser does not support the canvas tag.

Don't let it steal your mouse cursor! Inspired by this and this.

Boids 2010-07

ERROR: JavaScript is turned off or your browser does not support the canvas tag.

Steering Behaviors prototype, simple steering behaviors simulation based on Boids by Craig Reynolds, includes steering behaviors such as flocking, random wandering, and object avoidance.

The blue boids will flock around while the red predator will randomly pursue a boid. Also, the predator is attracted to your mouse cursor while the boids try to avoid it.

Osmosis 2010-07

ERROR: JavaScript is turned off or your browser does not support the canvas tag.

Ambient Survival of the Fittest, Osmosis is based on the puzzle/food-chain genre that often appear in Flash games and sometimes commercial games such as Osmos (which gave inspiration to this project's name).

The player is the blue cell, use the mouse to move around and avoid getting eaten by the bigger cells while absorb smaller cells to grow. The green cells just float around, the purple ones are a little bit more motivated and likes to dash around, while the red cells are dangerous (but clueless) predators.