var noiseScale=0.02; function setup() { createCanvas(windowWidth, windowHeight); } function draw() { background(0); for (var x=0; x < width; x++) { var noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale); stroke(noiseVal*255); line(x, mouseY+noiseVal*80, x, height); } }