xxxxxxxxxx
function setup() {
createCanvas(720, 720);
strokeCap(SQUARE);
}
function draw() {
background(255);
translate(width * .5, height * .5);
scale(1.4);
for (let s = 0; s < 4; s++) {
push();
rotate(PI*.5*s + frameCount*.01);
for (let i = 0; i < 125; i++) {
sW =9 * (sin(( sin(s*frameCount*.002)+1)*(i+1)/PI + frameCount*.1)*.5 +.5)*(i+1);
strokeWeight(2+sW);
line(-width * .5-sW*.5, -height * .5, width * .5+sW*.5, -height * .5);
scale(((125 - i) / 125));
rotate(PI*.015);
}
pop();
}
}