Physical simulation of rain. Assignment for Medialab course
The drops act like particles with mass that can be affected by forces according to Newton’s second law (F=m*a). An interesting consequence of this is that particles with less mass are more easily blown away by the wind. In the simulation, there are three forces: Gravity, wind, and friction.
To make the simulation, I based it on this example from P5JS, and the book The Nature of Code by Daniel Shiffman also helped.
Made with P5JS.