topical media & game development
graphic-processing-site-examples-Libraries-Video--Movie--Loop-Loop.pde / pde
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, P3D);
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);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.