/** * Commemoration / Animation / 2009 */ int numFrames = 9; // The number of frames in the animation int frame = 0; PImage[] images = new PImage[numFrames]; void setup() { size(902, 600); frameRate(2); images[0] = loadImage("memoryspectrum0a.jpg"); images[1] = loadImage("memoryspectrum00.jpg"); images[2] = loadImage("memoryspectrum01.jpg"); images[3] = loadImage("memoryspectrum02.jpg"); images[4] = loadImage("memoryspectrum03.jpg"); images[5] = loadImage("memoryspectrum04.jpg"); images[6] = loadImage("memoryspectrum05.jpg"); images[7] = loadImage("memoryspectrum06.jpg"); images[8] = loadImage("memoryspectrum07.jpg"); // If you don't want to load each image separately // and you know how many frames you have, you // can create the filenames as the program runs. // The nf() command does number formatting, which will // ensure that the number is (in this case) 4 digits. //for(int i=0; i