function setup() { createCanvas(450, 300); L = 440 } function draw() { background(220); x = 10; while (x < L) { y = 25*sin((x + frameCount)/45); stroke(0, 80, 225); line(x, 100 + y, x, 150 + y); stroke(0, 40, 245); line(x, 151 + y, x, 201 + y); stroke(0, 0, 255); line(x, 202 + y, x, 252 + y); x++; } }