how can i make the frameRate(); only effect the image array and not the video?
int maxImages = 5;
int imageIndex = 0;
import processing.video.*;
Movie mov;
PImage[] gifs = new PImage[maxImages];
void setup(){
size(800,600);
mov = new Movie(this, "biddlebars.mov");
mov.loop();
for (int i = 0; i < gifs.length; i ++ ) {
gifs[i] = loadImage ("one" + i + ".gif");
}
}
void draw(){
image(mov,0,0, 800, 600);
if (mousePressed == true) {
line(0,0,0,0);
} else {
frameRate(random(6));
image (gifs[imageIndex],0,0);
imageIndex = (imageIndex + 1) % gifs.length;
}
}
void movieEvent(Movie m) {
m.read();
}
1