Home▸Biology▸Ant Colony Pheromone Trails (2D)

🐜 Ant Colony Pheromone Trails (2D)

A 2D top-down ant colony simulation: ants wander from the nest, deposit pheromone on the way back from food, and the colony converges on the shortest path around obstacles as evaporation clears weaker trails.

Biology2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-ant-colony ↗ Open standalone
⚙ Under the hood

Watch a colony of ants wander from their nest, discover food, and lay down pheromone trails on the way back. Shorter routes get reinforced as more ants use them, while evaporation clears weaker paths. Click the map to add obstacles and watch the colony reroute and converge on a new shortest path.

ant colony optimizationpheromone trailstigmergyswarm intelligenceshortest path2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)