xxxxxxxxxx
47
let numberOfSeeds = 10000;
let c = 1;
let c2 = 2;
function setup() {
createCanvas(1500, 1500);
angleMode(DEGREES);
// background('#FAF9F6');
// background('#000035')
background('black');
translate(width/4,height/2);
for(let j=0; j <3; j++) {
for(let i = 0; i < numberOfSeeds; i++) {
let angle = i *137.6;
let radius = c * sqrt(i);
let radius2 = c2 * sqrt(i);
let x = radius * cos(angle) + width/200;
let y = radius * sin(angle) + height/20;
let x2 = radius2 * cos(angle) + width/200;
let y2 = radius2 * sin(angle) + height/20;
// noFill();
// fill('#FAF9F6');
strokeWeight(0.13);
stroke('#FAF9F6');
// stroke('black');
// line(x/PI*sin(c), y*cos(c), x+1, y);
// /ellipse(x/HALF_PI,y+3,1,1);
line(x/QUARTER_PI, y, x, y);
line(x2/QUARTER_PI, y2, x2+10, y2+10);
ellipse(x,y,.5,.5);
translate(-5, -11);
rotate(4);
}
}
}
// function draw() {
// background(220);
// }