xxxxxxxxxx
30
w = 400;
h = 550;
f = 0;
b = 500;
function setup() {
createCanvas(w, h);
}
function draw() {
f += 15;
background(0);
fill(0);
stroke(200);
for (y=50; y<b; y+=10) {
beginShape();
for (x=0; x<b; ++x) {
vertex(x, y-50 / (1+pow(x-w/2,4)/8e5) *
noise(x/1000+f/1000+y));
}
vertex(x,1e4);
endShape();
}
}