1.0.5 • Published 2 years ago
flockflock v1.0.5
FlockFlock
Boid (flock simulation) in the browser.
Installation
npm i -D flockflock
yarn add -D flockflock
Usage
<div class="world" style="width: 500px; height: 500px;"></div>
import { Flock } from 'flockflock'
new Flock('.world', {
n: 200,
fps: 60,
bait: true,
predator: true
})
1.0.5
2 years ago