A CodePen by Mike Ferron. AI - Flocking - Some simple AI behaviors using the canvas.  Click to toggle mouse avoidance/attraction.  Have fun!