PImage img; void setup() { frameRate(30); size(480, 480); img = loadImage("alda.png"); smooth(); background(255); } void draw() { background(255); translate(width/2, height/2); float secPastMidnight = (hour() * 60 * 60) + (minute() * 60) + second(); float hourRatio = secPastMidnight / 43200; pushMatrix(); rotate(hourRatio * TWO_PI); scale(1.1, 1.1); image(img, -img.width/2, -img.height/2); popMatrix(); float minuteRatio = ((minute() * 60) + second()) / 3600.0; pushMatrix(); rotate(minuteRatio * TWO_PI); scale(0.5, 0.5); image(img, -img.width/2, -img.height/2); popMatrix(); float secondRatio = second() / 60.0; pushMatrix(); rotate(secondRatio * TWO_PI); scale(0.25, 0.25); image(img, -img.width/2, -img.height/2); popMatrix(); }