xxxxxxxxxx
function setup() {
createCanvas(720, 720);
fps = 24;
frameRate(fps);
rectMode(CENTER);
colorMode(HSB);
strokeWeight(1);
}
function draw(){
background(240);
let t = frameCount/5;
push();
translate(width/2, height/2);
let N = 500;
for(let i=0;i<N;i++){
let r = 250*sin(t/11.33 + PI/2*noise(i*0.08, t*0.07)) + 70*sin(TAU/N*i*12 + t/2.33) + 20*noise(i*0.3, t*0.15);
let l = 40 * sin(5*TAU/N*i + t/2.99) + 15*noise(i*0.1, t*0.2);
let x = r * cos(TAU/N*i - t/15.31 + 0.3*noise(i*0.2, t*0.1));
let y = r * sin(TAU/N*i - t/15.31 + 0.3*noise(i*0.2, t*0.1));
push();
stroke(360/N*i, 100, 80, (0.7+0.3*sin(t/6.45566 + noise(i*0.4, t*0.2))));
//fill(360/N*i, 100, 100, 0.05);
fill(100,0.7)
translate(x, y);
rotate(-t/3.7 + i/N*TAU*2 + 2*noise(i*0.4, t*0.1));
rect(0, 0, l);
rotate(-t/3.7 + i/N*TAU*2 + 2*noise(i*0.2, t*0.4));
fill(360/N*i, 100, 80, 0.2);
rect(0.1*l*cos(t/4.54), 0.1*l*sin(t/3.787), l/2);
pop();
}
pop();
}