Bouncing Line

This sketch draws a line between two points that bounce around, creating a colorful gradient. I created this for the 17th day of Genuary which had a prompt of “Draw a line, pick a new color, move a bit.”


This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/animation/bouncing-line