Jason Davies
b7e20a4310
Couple of tweaks to reset gravity.
...
Firstly, when the mouse exits the area the gravity coordinates are nullified.
Secondly, if the user switches to another window, the gravity coordinates are
nullified (otherwise the appropriate "mouseout" event may be missed).
2011-06-15 23:20:14 +01:00
Jason Davies
cac32ebc58
Move d3.ai.boid to voroboids example.
...
From Mike:
> This way, we keep the core library small, and we can make
> non-backwards compatible changes without bumping the major version
> number.
2011-06-12 21:40:58 +01:00
Jason Davies
0270071984
Merge remote branch 'mbostock/boid' into boid
2011-06-12 21:13:43 +01:00
Mike Bostock
fe9ed1bd1d
Color voronoi cells by area.
2011-06-12 12:59:02 -07:00
Jason Davies
a8bc56d914
U.S. spelling for consistency.
2011-06-12 20:42:36 +01:00
Jason Davies
3d3ac3b147
Add "boid" flocking: d3.ai.boid().
...
Includes interactive "voroboids" example!
2011-06-12 20:09:15 +01:00