This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Want to know how this works? Check out my post Herd of Android Birds Mimic Ad Hoc Flocks discussing how complex group behaviour can arise from simple rules on gmilburn.ca.

This program allows you to play with a virtual school of fish. Adjust the three rules of separation, coherence, and alignment with the yellow sliders to observe different behaviours. Click the mouse anywhere else to add a new fish to the school. Click the large fish with the X eyes to reset the simulation.

You're currently using the SD version. If you want to see this in higher resolution with more fish, try the HD version.

Built with Processing.
Incorporates code by Daniel Shiffman.
© 2010 Geoffrey Milburn, gmilburn.ca.