xxxxxxxxxx
35
let numberOfSeeds = 8000;
let c = 2.4;
function setup() {
createCanvas(800, 800);
angleMode(DEGREES);
background('#FAF9F6');
translate(width/2,height/2);
for(let j=0; j < c; j++) {
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/200;
// noFill();
// fill('#FAF9F6');
strokeWeight(0.2);
stroke('black');
line(x/QUARTER_PI, y, x+30, y);
// line(x2/QUARTER_PI, y2, x2, y2);
rotate(3);
}
}
}
// function draw() {
// background(220);
// }