A flocking simulation with canvas