xxxxxxxxxx
let c = 0;
let spc = 0.1;
let ror;
function setup() {
createCanvas(w=windowWidth, h=windowHeight);
colorMode(HSB, 360, 100, 100, 100)
ror = min(w,h) / 3.2;
}
function draw() {
translate(w/2, h/2);
rotate(c * 0.04)
blendMode(BLEND);
background(0,0,20);
blendMode(ADD);
c++;
for(i=0;i<30;i++) {
//rotate(c * 0.00001)
let theta = c * spc *(1 + noise(i) * i/(i+100));
let x1 = ror * cos(theta) * sin(theta) + ror * 0.5 * noise(i);
let y1 = ror * sin(theta) + ror * 0.5 * noise(i) ;
drawingContext.shadowBlur = ror * 0.5;
drawingContext.shadowColor = color(((i + c) * 0.9) % 360, 100, 100);
stroke(((i + c) * random(0.2)) % 360, 100, 100);
strokeWeight(ror * 0.5 * noise(i + c * 0.2));
point(x1/2, y1/2);
circle(x1,y1,10);
}
}