/* built with Studio Sketchpad: * https://sketchpad.cc * * observe the evolution of this sketch: * https://studio.sketchpad.cc/sp/pad/view/ro.CDqQoPanM$u/rev.48 * * authors: * * Ari Bader-Natal * license (unless otherwise specified): * creative commons attribution-share alike 3.0 license. * https://creativecommons.org/licenses/by-sa/3.0/ */ // Pressing Control-R will render this sketch. int i = 0; void setup() { // this is run once. background(255); size(300, 400); smooth(); frameRate(5); strokeWeight(25); } void draw() { stroke(random(50), random(255), random(255), 100); line(i, 0, random(0, width), height); if (i < width) { i++; } else { i = 0; } }