xxxxxxxxxx
28
let numberOfSeeds = 15000;
let c = 2;
function setup() {
createCanvas(1200, 1200);
angleMode(DEGREES);
background('#FAF9F6');
translate(width/2,height/2);
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 137.5;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/20;
let y = radius * sin(angle) + height/20;
stroke('black');
line(x, y, 1 +x, 1+y);
rotate(PI);
}
}
// function draw() {
// background(220);
// }