Javascript; Individual work; Spring 2017
“How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital worlds?”
– Daniel Shiffman
This project uses p5.js to do a set of visualization and simulation on real physical environments. Topics including gravity, resistance, oscillation, spring, autonomous agents, and flocking system.
It contains 11 demos I created along with taking the course. Complete list of demos could be found here.
Some of my personal favorite are:
- A firework. Right click mouse to lighting a firework. Press Space to make the firework explode. Press “b” to make the firework blinking.
- A gravity game. Press ↑←↓→ to control blue ball direction. Press Space key to pause. Press "w" key to add wind. You’ll die touching red triangles, and get bounced back touching white circles.
- A fancy wave. Press ↑←↓→ to control the wave movement. Press Space to break the wave into particles, and press again to put them back together. Press "r", "g", "b" to change the color.
- Another game. Click onto end points of "N Y U S H", and drag them to form different shape. Click onto any of the flying torch, stop and drag them. Mouse hover onto a torch, and press "d" to make it move again.
The complete source code is here.