xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
noiseDetail(4);
}
function draw() {
background(0,20);
stroke(255);
noFill();
var zoff=frameCount*0.01;
var yoff=0;
for(var y=0;y<height+100;y+=10){
var xoff=0;
beginShape();
for(var x=0;x<width+100;x+=10){
var n=noise(xoff,yoff,zoff);
var wave=map(n,0,1,-100,100);
curveVertex(x,y+wave);
//ellipse(x,y+wave,30);
xoff+=0.01;
}
endShape();
yoff+=0.05;
}
}