xxxxxxxxxx
26
let inc = 0.01;
let start = 0;
function setup() {
createCanvas(600, 400);
stroke(200);
strokeWeight(5);
}
function draw() {
background(0,3);
noFill();
beginShape();
let xoff = start;
for (let x = 0; x < width; x++) {
let y = noise(xoff) * height;
vertex(x, y);
xoff += inc;
}
endShape();
start+=inc;
}