Created
May 1, 2012 01:31
-
-
Save koeri/2564225 to your computer and use it in GitHub Desktop.
[Processing] 実行結果を動画で記録する
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
//MovieMakerライブラリをインポート&宣言 | |
import processing.video.*; | |
MovieMaker mm; | |
void setup() { | |
size(640, 480); | |
frameRate(30); | |
//その他の初期設定ここに書く | |
} | |
void draw() { | |
//実行したい内容をここに書く | |
//draw実行のたびに1フレームずつ動画に追加 | |
mm.addFrame(); | |
} | |
//スペースキーで動画記録終了の例 | |
void keyPressed() { | |
if (key == ' ') { | |
movie.finish(); | |
exit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment