xxxxxxxxxx
18
function setup() {
createCanvas(1000 , 1000);
noLoop();
}
function draw() {
background(255);
fill(127);
noStroke();
beginShape();
vertex(0, height);
for (let i=0; i<=width; i+= (width / 50)) {
curveVertex(i, random(height * 0.25, height * 0.75));
}
vertex(width, height);
endShape(CLOSE);
saveCanvas();
}