Eric Heisler

Maker of things


Math and art in bite-sized apps

Back in the day I wrote dozens of simple applets based on math models, physics simulations, and other things that just looked cool. Then browsers stopped supporting applets… I’ve since reworked some of them into usable, though less convenient, forms. I’ll give you the code for the ones that have been reworked, though most of it is very rough since these are not serious projects, but just fun distractions. Some of them were just made to practice new programming or modeling techniques.

Henon basin of attraction

screen The Henon map attractor is old hat, but the structure around the basin of attraction is fun to play with. Slide the parameters around or zoom through the fractal structure.
The repository with Processing sketch, Java code, and windows application.


Iterated function system

picture Start out with a classical Barnsley fern and visually modify each of the functions or make an animation. It beautifully demonstrates the continuous property of the fractal with respect to the parameters.
The repository with the Java code.

Coupled, noisy, n-channel FitzHugh-Nagumo simulation

picture Explore stochastic resonance and coupled excitable systems with this simulation. See if you can find the set of parameters that causes a period-doubling bifurcation, which looks really cool.
The repository with the Java code.

N-body gravity simulation

picture A couple different implementations of N-body gravitation simulations. They are by no means useful for scientific purposes, but they are fun to play with.
The repository with the Java code.

2-D random walk of an ensemble of particles

picture Perform a 2-D random walk with any number of particles, then plot the statistics to confirm the results your textbook gives. There is also a version with memory, meaning there is an adjustable probability to step the same way as the last step. These statistics are more difficult, but not impossible, to find an analytical solution for.
The repository with the Java code.

RGB politics

picture Start with a random grid of colors. Let their RGB values be influenced by their neighbors such that they tend toward the color(red, green or blue) that is most prominent around them. It will evolve toward an irregular equilibrium pattern. Then click to randomize it again. It happens extremely fast, so I slowed the evolution way down to make it observable.
The repository with Processing sketch, Java code, and windows application.

Spirograph? Harmonograph? What exactly is it?

picture Build a virtual harmonograph and play around with parameters before you try building a physical one. It can produce some really cool patterns.
The repository with Processing sketch, Java code, and windows application.


Patterns in noise

picture Look at some random noise and you will find faces and other common patterns. Your brain is extremely good at this. Here you can do it with color. Generate a grid of randomly colored squares(pixels are too small), and see what you can see.
The repository with Processing sketch, Java code, and windows application.

Space dust cloud simulation

picture Make clouds of many particles and collide them. This is not very physically accurate, but it can look interesting.
The repository with the Java code.