xxxxxxxxxx
33
let points = [];
let pointcount = 1000000;
let fc=0;
function setup() {
createCanvas(windowWidth, windowHeight);
for(let i=0;i<pointcount;i++){
points.push(createVector(i*width/pointcount, noise(0, i*width/(pointcount * 100)) * height));
}
noFill();
}
function draw() {
background(255);
let ts = millis()/1000;
beginShape();
for(let i=0;i<pointcount;i++){
points[i].y=(noise(ts, points[i].x/100) * height);
vertex(points[i].x,points[i].y);
}
endShape()
fc++
if(millis()>10000){
print(fc)
noLoop()
}
}