xxxxxxxxxx
18
function setup() {
createCanvas(400, 400);
noLoop();
}
function draw() {
background(0);
noFill();
stroke(255);
beginShape();
for (let x = 0; x < width; x++) {
const t = map(x, 0, width, 0, 10);
const y = height * noise(t);
vertex(x, y);
}
endShape();
}