This example demonstrates the use of a particle system to simulate the motion of falling snowflakes. This program defines a snowflake class and uses an array to hold the snowflake objects.
Snowflakes by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.