// 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; } }