xxxxxxxxxx
let angle = 0;
function setup() {
createCanvas(500,500);
noStroke();
colorMode(HSB,205, 150, 100, 3);
}
function draw() {
background(0, 0.1);
translate(width / 2, height / 2);
rotate(random(TWO_PI));
let s = random(1, 2);
scale(s);
let hue = random(200, 240);
fill(hue, 80, 100, 0.2);
let r = random(100, 200);
let d = dist(0, 0, mouseX - width / 2, mouseY - height / 2);
let shape = map(d, 0, width / 2, r, 10);
for (let i = 0; i < 360; i += 10) {
let x = shape * cos(i);
let y = shape * sin(i);
ellipse(x, y, random(10, 50));
}
angle += 0.1;
}