moving the rest of the video examples

This commit is contained in:
benfry
2011-01-26 19:44:42 +00:00
parent a53f278863
commit e7e7356396
3 changed files with 0 additions and 0 deletions
@@ -0,0 +1,27 @@
/**
* Loop.
*
* Move the cursor across the screen to draw.
* Shows how to load and play a QuickTime movie file.
*/
import processing.video.*;
Movie myMovie;
void setup() {
size(640, 480, P2D);
background(0);
// Load and play the video in a loop
myMovie = new Movie(this, "station.mov");
myMovie.loop();
}
void movieEvent(Movie myMovie) {
myMovie.read();
}
void draw() {
tint(255, 20);
image(myMovie, mouseX-myMovie.width/2, mouseY-myMovie.height/2);
}