Skip to content

A classic Craig Reynolds flocking behaviour simulation using p5.js

License

Notifications You must be signed in to change notification settings

rlugojr/flock-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

A computer model for the flocking behaviour of birds, basically. It was developed by Craig Reynolds in 1986.

This particular implementation uses P5, an accessible JavaScript computer graphics library. The P5 website also contains a slightly different implementation of the same flocking model.

Installation

Download the minified p5 source from http://p5js.org/download/ and place it in the same folder with the rest of the code.

Open the file index.html in your favourite browser, (enable JavaScript if not already enabled), and admire the birds until you first start feeling drowsy and finally fall asleep on your keyboard. 😴

About

A classic Craig Reynolds flocking behaviour simulation using p5.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published