Gold Fish Simulation


This is the simulation of the famous "flocking" behavior of fish (or bird). It uses the algorithm described in the following paper:
Flocks, Herds, and Schools: A Distributed Behavioral Model by Craig W. Reynolds
http://www.cs.toronto.edu/~dt/siggraph97-course/cwr87/
This application demonstrates the "canvas pre-rendering" technique, which generates images of fish in array of off-screen canvas elements, and use them later.
It also uses CSS transform to specify the location and the direction of each fish.
I have verified that this application runs on Safari (4.0 and later), Firefox (3.5 and later) and Google Chrome (4.0 and later).
Flocks, Herds, and Schools: A Distributed Behavioral Model by Craig W. Reynolds
http://www.cs.toronto.edu/~dt/siggraph97-course/cwr87/
This application demonstrates the "canvas pre-rendering" technique, which generates images of fish in array of off-screen canvas elements, and use them later.
It also uses CSS transform to specify the location and the direction of each fish.
I have verified that this application runs on Safari (4.0 and later), Firefox (3.5 and later) and Google Chrome (4.0 and later).
This widget was forked from Bouncing DIVs
satoshi (56)
0 Comment
Leave a commentLeave a comment