// Uses movie file from Processing example Libraries | Video (Movie) | Loop import processing.video.*; // video library Movie mov; boolean firstframe = false; void setup() { size(320,240); smooth(); textFont(loadFont("Helvetica-14.vlw")); // load and start the movie mov = new Movie(this, "movie.mov"); mov.loop(); } void movieEvent(Movie m) { m.read(); firstframe = true; } void draw() { if(firstframe) { // make sure at least one frame has been read image(mov,0,0,320,240); // now treat the movie frame like an image text(mov.time(),0,height); } } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }