xxxxxxxxxx
39
let numberOfSeeds = 3000;
let c = 4;
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 * 135.7;
// let angle = i * 10.20;
let radius = c * sqrt(i);
let x = radius * cos(angle) + width/200;
let y = radius * sin(angle) + height/200;
// noFill();
fill('#FAF9F6');
strokeWeight(0.3);
stroke('#FAF9F6');
// stroke('yellow')
line(x, y, x+5, y+5);
// ellipse(x, y, 1, 1);
// line(x2/QUARTER_PI, y2, x2, y2);
rotate(12.3);
}
}
}
// function draw() {
// background(220);
// }