xxxxxxxxxx
37
let numberOfSeeds = 3000;
let c = 4.5;
function setup() {
createCanvas(700, 700);
angleMode(DEGREES);
// background('#FAF9F6');
background('black');
translate(width/2,height/2);
for(let j=0; j < 6; j++) {
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i * 137.2;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/200;
let y = radius * sin(angle) + height/200;
// noFill();
// fill('#FAF9F6');
strokeWeight(0.1);
stroke('#FAF9F6');
line(x/PI, y/QUARTER_PI, x, y);
ellipse(x, y, 2.5, 2.5);
// line(x2/QUARTER_PI, y2, x2, y2);
// rotate(2);
}
}
}
// function draw() {
// background(220);
// }