Created
January 16, 2014 19:13
-
-
Save drart/8461410 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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