xxxxxxxxxx
29
let numberOfSeeds = 3000;
let c = 5;
function setup() {
createCanvas(700, 700);
angleMode(DEGREES);
background('black');
translate(width/2,height/2);
for(let j=0; j < 6; j++) {
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 135.1;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/200;
let y = radius * sin(angle) + height/200;
fill('#FAF9F6');
strokeWeight(0.1);
stroke('#FAF9F6');
line(x, y, 10+x, 10+y);
ellipse(x, y, 2.5, 2.5);
}
}
}