A simple example of flocking written in Paper.js. Based on the code from Chapter 6 of Nature of Code by Daniel Shiffman.
View a demo. Note that it might not be based on the latest version in the repository.
More features and optimization to be added later.