Hello.

Predator

Predator/Prey simulation of very, very dumb dots. Roughly half are "smart" and the other half are "dumb". The smart ones will flee the predator. If the dumb ones see a nearby smart one running away, it will copy the smart one.

The predator moves in random directions. It gets bigger each time it eats a prey.

Boids

Flocking simulation using steering behaviors created by Craig Reynolds.

Steering behaviors:

  • Cohesion: Attempt to go toward the center of mass.
  • Alignment: Try to face the same direction as nearby boids.
  • Separation: Avoid other boids if too near.

There is a player controlled red rectangle. The boids will, above all else, turn away from the player when too near.

Matrix Decisions

Movement based on a matrix of ranked cells around each moving object. The objects rank the spot they are currently in very low, cells near them with a rectangle are ranked extremely low. Cells which are in line with others will go up in rank.

Trails

Draw rectangles on the screen using the mouse. Press the start button. The dots will move in random directions.

They leave behind little trails which increase with each nearby dot. The dots will attempt to avoid the trails.

Sometimes they get stuck if there are too many dots near each other, because they just keep increasing the trail value to maximum. They should eventually find openings to get out though. They still move in random directions, but the trails encourage them to seek "unexplored" areas.

The dots turn blue when there is no "good" choice to make. The dot that is white (changes to gold) is the dot you can watch when you click "Toggle Choice Display".

H-Tree Fractals

A fractal that splits into two recursively. Also called a T-branching. Try adjusting the angles, lengths and colors to make your own design. The length of each new line is reduced by the "Length Scale" value.

When the "Length to Draw Leaf" value is reached, the function will end the recursive calls to draw more and instead draw a "leaf".

Mandelbrot Fractals

A fractal generated by continuously squaring a number to see if it eventually approaches infinity or zero. If it approaches infinity, it will be lighter. Black pixels are zero.

Game Camera

Another game but this time with a camera that follows the player.

Swarm

Combo of the "game camera" along with boids. Use the mouse click to "fire" a boid out. It will travel in a steady path until hitting a wall, then will follow steering behaviors.

Piano

A very terrible "piano" pitch adjustment experiment in progress.