Press escape to exit fullscreen


CC {{sketch.licenseObject.short}}

Archived Sketch

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

View Source Code

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:
{{$t('',["mouse, keyboard"])}}
{{$t('',["visualization, fractal, mouse"])}}
{{$t('general.learnMoreAbout')}} Creative Commons
  • {{v.title}}

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

  • {{co.title}}