Calibrate works?
This commit is contained in:
parent
26e34f7671
commit
cc711c6343
1104 changed files with 636510 additions and 75 deletions
33
lib/video/examples/Movie/Speed/Speed.pde
Normal file
33
lib/video/examples/Movie/Speed/Speed.pde
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* Speed.
|
||||
*
|
||||
* Use the Movie.speed() method to change
|
||||
* the playback speed.
|
||||
*
|
||||
*/
|
||||
|
||||
import processing.video.*;
|
||||
|
||||
Movie mov;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
background(0);
|
||||
mov = new Movie(this, "transit.mov");
|
||||
mov.loop();
|
||||
}
|
||||
|
||||
void movieEvent(Movie movie) {
|
||||
mov.read();
|
||||
}
|
||||
|
||||
void draw() {
|
||||
image(mov, 0, 0);
|
||||
|
||||
float newSpeed = map(mouseX, 0, width, 0.1, 2);
|
||||
mov.speed(newSpeed);
|
||||
|
||||
fill(255);
|
||||
text(nfc(newSpeed, 2) + "X", 10, 30);
|
||||
}
|
||||
|
||||
BIN
lib/video/examples/Movie/Speed/data/transit.mov
Normal file
BIN
lib/video/examples/Movie/Speed/data/transit.mov
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue