In addition to basic flocking, these boids will occasionally alight and then arise again. The graphics include a painted background, flapping wings, and shadows. He also provides an explanation and pseudocode . Steve Hughes wrote this 3d model of fish schooling in the presence of a predator. Includes a control panel.
Source code is provided.
Schooling tropical fish by Bill Kraus at Digital Biology . Helmut Lorek wrote a Java-based simulation of fish schooling which includes adjustable parameters. It is based on a model by Andreas Huth and C. Wissel. Notably it allows you to switch each of the three component behaviors on and off, as well as allowing you to adjust the size of the flock. See also his report on the project for his 8th grade science class.