Transforming Dots
/** * Transforming Dots * * @author aa_debdeb * @date 2015/10/14 */ void setup(){ size(500, 500); smooth(); frameRate(24); } void draw(){ background(30); noStroke(); fill(255, 20, 147, 150); translate(width/2, height/2); for(int x = -100; x <= 100; x += 10){ for(int y = -100; y <= 100; y += 10){ float distance = sqrt(x * x + y * y); pushMatrix(); translate(x * cos(frameCount * 0.05), y * sin(frameCount * 0.05)); rotate(frameCount * 0.1); ellipse(x, y, 7, 7); popMatrix(); } } }