xxxxxxxxxx
35
let xoff = 0.0;
function setup() {
createCanvas(800, 800);
noLoop();
//console.log(noise(width, height))
background(255, 155, 100);
}
function draw() {
noFill();
xoff = xoff + 0.05;
let n = noise(xoff) * width;
strokeWeight(8);
stroke(255, 204, 100);
for(let i = 0; i < width; i += 10) {
// curve(x1, y1, x2, y2, x3, y3, x4, y4)
curve(
random(n, -n), random(-n, n),
i, 0,
i, height,
n, parseInt(random(-height, height))
);
curve(
random(-width, width), random(-height, height),
0, i,
width, i,
noise(i) * width, parseInt(random(-height, height))
);
}
}