You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there way to call for the next frame of the movie only when a scroll wheel event is triggered ? The code i have so far updates to the current frame every time the scroll wheel is scrolled down(the movie seems to be playing in the background without being updated), not to the frame after the most recent frame displayed.
Is there way to call for the next frame of the movie only when a scroll wheel event is triggered ? The code i have so far updates to the current frame every time the scroll wheel is scrolled down(the movie seems to be playing in the background without being updated), not to the frame after the most recent frame displayed.
import processing.video.*;
Movie myMovie;
void setup() {
size(1920, 1080);
myMovie = new Movie(this, "1.mov");
myMovie.play();
}
void mouseWheel(MouseEvent event) {
float delta = event.getCount();
if (delta > 0) {
myMovie.read();
} else if (delta < 0) {
}
println(delta);
delta = 0;
}
void draw() {
background(0);
image(myMovie, 0, 0);
}
The text was updated successfully, but these errors were encountered: