xxxxxxxxxx
27
let numberOfSeeds = 5000;
let c = 4;
function setup() {
createCanvas(700, 700);
angleMode(DEGREES);
background('#FAF9F6');
translate(width/2,height/2);
for(let j=0; j <20; j++) {
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 135.7;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/20;
let y = radius * sin(angle) + height/18;
strokeWeight(0.5);
line(x, y, x+5, y+5);
rotate(4.6);
}
}
}