// by Monica Subirats float t; void setup (){ size(500,500); background(0); noStroke(); smooth(); float radius = 1.0; } void draw(){ background (0); frameRate(20); translate(width/2, height/2); rotate (t*0.03); elipse(); t++; } void elipse(){ translate(width/4, 0); rotate((t*0.08)); float radius = 1.0; for (int deg=0; deg<360*6;deg+=11){ float angle =radians(deg); //punt on està centrada la rodona float x=(cos(angle)*radius); float y=(sin(angle)*radius); fill(255); ellipse (x,y,6,6); radius = radius + 0.34; } t++; }