Galton Box Simulator
This is a sketch made with Processing and the PBox2D physics library.
It is a simulation of the Beam Machine by sir. Francis Galton (a.k.a. Galton box).
You can see the sketch in action in this video!
The sketch has been designed with a procedural architecture in mind; what does it mean is that you can modify the geometrical structure of the Bean Machine easily simply by changing some global variables, and the code will adjust itself automatically.
Install
In order to use the code you need:
- to have your Processing IDE up and running (look here on how to set-up the Processing environment);
- install the PBox2D library (for more information on how to install a library for your Processing environment, please visit this link);
- Download the code from this repository, open it with your Processing IDE and run it!
Notes
This is a sort of migrated repository from its original location at https://github.com/ariutti/galtonBox. The code has been updated and some documentation added.