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

Capture Screenshot

Firefly synchronisation

A simulation of the synchronisation of pulsating fireflies. Clicking the mouse adds new fireflies. They move according to a flowfield based on Daniel Shiffman's book 'The Nature of Code'. Synchronisation algorithm is inspired by work done by Steven Strogatz. By playing with the parameters you can change the time they need to sync up. I like the way they are now, because of the emerging waves.
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
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}



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