xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
//noLoop();
//frameRate(1);
colorMode(HSB);
smooth(10);
}
function draw() {
background(0);
// ambientLight(255);
rectMode(CENTER);
noFill();
let ang=0;
for(let i=0;i<50;i++){
push();
drawingContext.shadowBlur = 20;
drawingContext.shadowColor = color(225+sin(millis()*0.001)*5*i*0.7,
225/i*25+sin(millis()*0.0004)*15,
255,
5+sin(millis()*0.000008*i)*12);
stroke(225+sin(millis()*0.001)*5*i*0.7,
225/i*25+sin(millis()*0.0004)*15,
255,
5+sin(millis()*0.000008*i)*12);
translate(width/5.5+(i*33)+sin(millis()*0.0001)*127*-1,
height/2,
50+(i*2)*-1+sin(millis()*0.00008)*70);
//rotateZ(PI*-1);
//rotateY(TWO_PI*0.199*-1+sin(millis()*0.00002*i)*TWO_PI*0.01);
rect(0,0,width/5,width/3.8);
pop();
}
}