Boids

Boids in JS (2 dimensional). Boids are a simulation of flocking behavior.

Attraction: (m1) Repulsion: (m2)
Alignment: (m3) Stay on screen: (m4)
Chase: (m5) Fear: (m6)
Predator

Get a better browser (SeaMonkey, Firefox, Opera, Safari)

This is based on Conrad Parker's pseudocode here.

Back to CTho's JS Toys