// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 19 | Sketch 1 // Uses movie file from Processing example Libraries | Video (Movie) | Loop import processing.video.*; Movie station; void setup() { size(160,120); textFont(loadFont("CourierNewPSMT-24.vlw")); station = new Movie(this, "station.mov"); station.loop(); } void draw() { if (station.available()) { // a movie frame is available for reading station.read(); // read it image(station,0,0); // now treat the movie frame like an image text(station.time(),0,height); } }