A fork of {{sketch.parentSketch.title}} by {{sketch.parentUser.fullname}}.

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Click record or press 'R'
to start/stop recording (max. 10 secs)

Click capture
to take a screenshot

Ant Colony Pheromone Simulation

They leave pheromone trails to home and to food. You can click to add food. Suggestions and forks welcome! I would like to add collision detection, obstacles, and a pheromone pen and eraser. I was wondering why my ants were making zigzag paths instead of straight lines to the food, but then I remembered that they can travel faster diagonally (1,1) than straight (0,1)... so they _are_ making an optimal path in their pixel-constrained world. I'm so proud of the little buggers. Timelapse: http://www.youtube.com/watch?v=41fbig0tlPs
e.g. "mouse, keyboard"
e.g. "visualization, fractal, mouse"
learn more about Creative Commons
  • {{v.title}}

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}