<source lang="java"> int n = 14;
PImage[] images = new PImage[n]; int dx = 100; int dy = 200; color c; int slowdown = 4;
float zoom = 0.5;
void setup() {
size(600, 400); c = color(random(255), random(255), random(255)); background( c, c, c); for(int i=0; i < n; i++) { images[i] = loadImage("IMAG-" + i + ".png"); }
}
void draw() {
int pick = (frameCount / slowdown) % n; translate(mouseX , mouseY); scale(zoom / 4); translate(-dx, -dy); image(images[pick], 0, 0); if (mousePressed) { background(random(255), random(255), random(255)); }
}