xxxxxxxxxx
32
let start = 0;
function setup() {
createCanvas(400, 400);
strokeWeight(0.5);
}
function draw() {
background(start);
fill(200);
let xoff = start;
beginShape();
for (let x = 0; x < width; x++) {
let y = noise(xoff) * height;
fill(x, y, start * 10, 1);
noStroke();
rect(0, x, width, x);
fill(x, y, start * 10, x/20);
stroke(x, y, x, 100);
rect(y, x, 60 - start / 5, x * -0.25,2,2,0,0);
xoff += 0.02;
}
start += 0.02;
endShape();
}