member since November 1, 2009
profile picture

portfolio of
Jared Counts


Dough, sort of a hybrid between Balls and Curtain.

Click and drag to interact.


Flock is an algorithm I initially wrote about a year ago. In the past week, I've cleaned it up, optimized it (to support 1000 boids instead of 200), and added comments to make it readable.

It works best with P2D/OPENGL as a renderer, but that seems to break here on OpenProcessing

Flock AI post:

Nebula Generator

'p' for settings
'r' to reset
space to clear the screen

Nebula Generator is simply Curtain, but in 3D space. It's drawn over and over semi-transparently, and eventually the forces combined with the constraints allows it to create a very organic nebula-like piece of art.


This is a toy car simulator made using the same algorithms used in Curtain and Ragdoll Aquarium.

Use Up and Down to accelerate/deaccelerate
Use Left and Right to tilt
Click and drag to pick up the car
To score, drive on one wheel for as far as possible

Updated May 4, 2011:
- Added tilting with left/right arrow keys
- Added scoring (based on how far you can go on one wheel)
- Fixed bug where key presses weren't registered by Mac users
- Fixed the noise function so it's consistent in applets

Ragdoll Aquarium

In this applet, we make use of the Verlet Integration method from Curtain, and create little ragdolls.

I did my best to comment the code for others to use.

Please visit for more details on this applet, it's formulas, and other applets as well. Thank you.

'R' to reset
Click and drag to interact.


Fabric simulation in Processing. It makes use of
verlet integration. I did my best to comment the code.

How to make a Fabric Simulator:
(Part 1)
(Part 2)

Left click and drag to interact.
Right click to tear.
Press 'G' to toggle gravity.
Press 'R' to reset.


A bit like rotation, but with depth and pretty colors added.

Update March 6, 2011 : Slight optimizations made. 12,500 particles are used instead of the previous 10,000.


Lines randomly shoot from the center in isometric space. A bit of a variation of Explode.


Use 'z' to add some color to the particles, and again to undo.
Use 'x' to change the background to white/black

What's funny is that this actually doesn't take into account the Z coordinate of the particle when plotting the point. My initial idea was to use my isometric formula, but made a mistake in using the wrong variable for plotting, and ended up doing this. It ended up looking 3D anyways (because of the resizing, sorting, and blurring), and a bit better than if I were to use isometric... Fancy that!


Fluid simulation
'g' to toggle gravity
any other key to toggle line relationships

left click to deflect particles
right click to attract particles


Isometric boxes waving around the center of the screen.


Interactive applet where you can stir around particles.
Mouse click and hold to interact.

November 8, 2009 - Removed some unnecessary calculations, revised boundary collisions
November 6, 2009 - Optimizing and control adjustment
Februrary 22, 2011 - More optimizations. Implemented delta time, so the code is performance independent.


Another animation. This is my first Processing script, but second released on OpenProcessing. I've commented the code as much as possible, and revised before releasing.

Press any key to restart.

Feedback would be nice.

November 6, 2009 - optimizing
December 1, 2009 - removed some unnecessary calculations; converted all the angles to radians, lowered particle count a tad
December 2, 2009 - did some more optimizing, converted the coordinates datatypes to PVector from float


Drag cursor left or right to interact.

Particles rotating around the center of the screen in isometric space.

This is my second Processing program, but first to the site. I did my best to comment the whole code.

November 6, 2009 - optimization
December 2, 2009 - more optimization, some revising in code and comments, using PVector instead of floats for coordinates now, and inverted the speeds (center moves faster than outer)
December 3, 2009 - Added interactivity. Drag cursor left or right (while pressing) to spin, also revised codes a bit.
followed by


Share Share Subscribe to sketches