xxxxxxxxxx
36
function setup() {
createCanvas(400, 400, SVG);
noLoop();
}
function draw() {
background("#1A371C");
stroke("#E2EDD033");
strokeWeight(1);
noFill();
const size = 8;
const distance = 8
const grid_size = (size + distance)
const circleCount = width / grid_size;
translate(grid_size/2,grid_size/2)
for (let x = 0; x < circleCount; x++) {
for (let y = 0; y < circleCount; y++) {
let posX = x*grid_size;
let posY = y*grid_size;
let cSize = noise(x,y) * size;
circle(posX, posY, cSize);
}
}
// save("sphere.svg");
}