xxxxxxxxxx
var mx = 0;
var my = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
noStroke();
}
function draw() {
blendMode(BLEND);
background(0, 15);
blendMode(ADD);
randomSeed(0);
mx = lerp(mx, mouseX, 0.05);
my = lerp(my, mouseY, 0.05);
translate(mx, my);
var r = min(width, height) * 0.05;
var n = noise(frameCount * 0.01);
for(var i=0; i<100; i++) {
push();
rotate(frameCount * 0.01 + random(i) * TWO_PI);
translate(noise(i) * r + random(i) * noise(n) * r , 0);
scale(random(0.1, i * 0.01));
fill(random(255), random(255), random(255), 50);
ellipse(0, 0, r , r );
pop();
}
}