Skip to content

Instantly share code, notes, and snippets.

@drart
Created January 16, 2014 19:13
Show Gist options
  • Select an option

  • Save drart/8461410 to your computer and use it in GitHub Desktop.

Select an option

Save drart/8461410 to your computer and use it in GitHub Desktop.
import processing.video.*;
MovieMaker mm; // Declare MovieMaker object
/*
// copy to setup() to activate
mm = new MovieMaker(this, width, height, "mysketchoutput.mov",
frameRate, MovieMaker.H263, MovieMaker.HIGH);
// copy to the end of draw()
mm.addFrame();
*/
void captureEvent(Capture myCapture) {
myCapture.read();
}
void mouseReleased(){
println(frameRate);
}
void keyPressed(){
if(key == ' ')
saveFrame();
if (key == 'f')
println(frameRate);
if(key == 's' & mm != null)
mm.finish();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment