xxxxxxxxxx
20
let count = 0;
function setup() {
createCanvas(200*1.5, 200*1.5, SVG);
}
function draw() {
for(let i = 0; i < width; i+=0.5){
for(let j = 0; j < height; j+=0.5){
let n = noise(i/40,j/40);
let r = random();
if(n**7 > r){
point(i,j)
count++;
}
}
}
console.log(count);
save();
noLoop();
}