xxxxxxxxxx
29
let numberOfSeeds = 10000;
let c = 4;
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/200;
let y = radius * sin(angle) + height/25;
strokeWeight(0.4);
stroke('black');
line(x/QUARTER_PI, y, 1+x, 1+y);
// rotate(3);
}
}
// function draw() {
// background(220);
// }