In a previous project, you animated a lot of fireflies that are moving and lighting up at different phases. In the nature fireflies sometime synchronize making a wonderful show! It is one of the swarm behavior in the nature and we will try to simulate it.
We can make our computer fireflies synchronize by following a very simple rule:
If a firefly sees another another firefly lights up, it will increase its phase slightly to catch up with the nearby firefly.