void setup() {
size(600,600);
}
void draw() {
background(20);
for (int i = 0; i < 1; i++) {
for (int j = 0; j < 50; j++) {
pushMatrix();
translate(300 + i * 120, 150 + j * 6);
float ratio = (i*20 + j*3)/49.0;
float angle = sin(millis() / 800.0 + ratio * (PI/2)) * PI/4;
float a =150*cos(angle);
//float a =200;
rotate(2*angle);
strokeWeight(1);
stroke(#EA1A3E);
noFill();
rectMode(CENTER);
rect(0, 0, a, a);
popMatrix();
}
}
}