2D Boids in JavaScript

This JavaScript Boids effect is a simulation of flocking/schooling behavior (e.g. birds, fish). A very helpful JavaScript code to practice yourself.


Sampled by © JavaScriptBank.com

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)

2000+ free JavaScripts
at www.JavaScriptBank.com