Happy Coding

Falling Points

This sketch uses an array that holds a Y value for every X value across the width of the canvas. It adds a random number to each Y value so that the points fall at different speeds.

This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/arrays/falling-points