// Uses movie file from Processing example Libraries | Video (Movie) | Loop import processing.video.*; // video library Movie mov; void setup() { size(640,720); smooth(); rectMode(CENTER); // load and start the movie mov = new Movie(this, "movie.mov"); mov.loop(); } // this is called when a new frame is available // albeit this does nothing, it appears to help the program running well void movieEvent(Movie m) { } // Same as with images PImage filterContrast(PImage src) { PImage ret = new PImage(src.width,src.height); // make a new image float contrast = 0.01; // factor by which to push toward either 0 or 255 for (int i=0; i