Press escape to exit fullscreen

{{sketch.instructions}}

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

Capture Screenshot

Ant Colony Pheromone Simulation

{{$t('general.by')}}
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
We recovered an unsaved version of this sketch. Please review your changes below.

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

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}