xxxxxxxxxx
function setup() {
createCanvas(650, 650);
background(0);
for (let i = 0; i < 60; i++) {
let x = random(width);
let y = random(height);
let w = sqrt(sq(x - width / 2) + sq(y - height / 2)) / 2;
noStroke();
let color = random(20, 50);
fill(color * 1.5, color, color * 2.5, 6000 / w);
rect(x - w / 2, y - w / 2, w, w);
}
for (let i = 0; i < 100; i++) {
let x = random(width);
let y = random(height);
let w = sqrt(sq(x - width / 2) + sq(y - height / 2)) / 2;
noFill();
stroke(random(50, 250), random(30, 100), random(10, 200));
rect(x - w / 2, y - w / 2, w, w);
}
for (i = 0; i < 1200; i++) {
let x = random(width);
let y = random(height);
stroke(random(50, 250), random(30, 100), random(10, 200));
point(x, y);
};
}