This applet tries to simulate the behavior of fish swarms. It's based on the boid algorithm from Craig Reynolds, see http://www.red3d.com/cwr/boids/.
The algorithm has been enhanced with feeding and mating behaviors. A very simple form of evolution is also modelled. So feed your fishes properly and see the sea holds in store for you! Who knows, maybe you will even spot the famous jaguar shark!
Thanks to my brother Gerrit Lünsdorf and his girlfriend Johanna Carola Fokken for pinkfish and seahorse. Also thanks to Stefan Scherfke for the porcupine fish.