xxxxxxxxxx
22
let offset = 0.0;
function setup(){
createCanvas(500,250);
}
function draw()
{
background(255);
beginShape();
for( let i = 0; i < width; i += 10){
curveVertex(i, height/2+50*(0.5-noise(i*0.1+offset)));
}
endShape();
offset += 0.01;
}
function keyPressed()
{
// save("出力結果.png");
}