xxxxxxxxxx
26
let numberOfSeeds = 1000;
let c = 4;
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
background('green');
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 137.5;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/2;
let y = radius * sin(angle) + height/2;
fill('maroon');
stroke('pink');
ellipse(x, y, 3, 3);
// line(x, y, 1, 1);
}
}
// function draw() {
// background(220);
// }