xxxxxxxxxx
41
let numberOfSeeds = 1000;
let c = 3;
function setup() {
createCanvas(700, 700);
angleMode(DEGREES);
// background('#FAF9F6');
// background('#000080')
background('black');
translate(width/2,height/2);
for(let j=0; j <30; 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/20;
let y = radius * sin(angle) + height/18;
// noFill();
// fill('black');
// fill('#FAF9F6');
strokeWeight(0.5);
stroke('#FAF9F6');
// stroke('yellow')
line(x, y, x+5, y+5);
// ellipse(x, y, 2, 2);
// line(x2/QUARTER_PI, y2, x2, y2);
rotate(4);
}
}
}
// function draw() {
// background(220);
// }