// Digital Chronophotography with set of images 1.0 // By Heino Boekhout | heino@odyssey.nl | http://odyssey.nl // Instructions: // Fill in the number of frames (numFrames), // the width (wmov) and the height (hmov) of the images, frame name (framename) // without the imagenumber and the desired blendmode (mode). // images will be stored in the project folder. int numFrames = 79; // The number of frames int frame = 0; int i; int wmov, hmov; //width and heigt of movie String framename; char mode; //chronomode PImage[] img = new PImage[numFrames]; void setup() { wmov = 640; // width of the images hmov = 480; // height of the images framename = "name_"; // add 0 if total > 100, 00 if total > 1000 mode = LIGHTEST; // use blendmode LIGHTEST or DARKEST size(wmov, hmov); background(loadImage((framename)+"01.jpg")); for(int i=1; inumFrames-2) { noLoop(); } else { frame = (frame+1)%numFrames; // Use % to cycle through frames blend(img[frame], 0, 0, wmov, hmov, 0, 0, wmov, hmov, mode); } } void keyPressed() { if(key == CODED) { if (keyCode == DOWN) { saveFrame("0_saved-####.tif"); println("Image saved"); } } }