Hello, i'm need help, i'm a code with layer libraires and a need a problem for integrate a movies in my layer.
i'm post my code here :
Thank you very much for you help
Gil
import codeanticode.protablet.*; //import pro tablette
import processing.video.*; //importe processing video
import com.nootropic.processing.layers.*;//importe layer
Tablet tablet;
Movie movie;
AppletLayers layers;
void setup() {
size(640, 360);
background(0);
tablet = new Tablet(this);
stroke(255); //white stroke
layers = new AppletLayers(this);
// Load and play the video in a loop
movie = new Movie(this, "transit.mp4");
movie.loop();
}// END SETUP
void movieEvent(Movie m) {
m.read(); // Read movie
}// END MOVIE EVENT
void draw() {
}
//println("TiltX: " + tablet.getTiltX() + " " + "TiltY: " + tablet.getTiltY()); //envoye des infos dans la console
//tilt est l'inclinaison du stylet
class Layer {
Layer() {
image(movie, 0, 0, width, height);
}//END MY LAYER
}// END CLASS LAYER
class Layer1 {
Layer1() {
if (mousePressed) {
strokeWeight(10 * tablet.getPressure());
line(pmouseX, pmouseY, mouseX, mouseY);
}//END MY LAYER
}// mouse pressed
}// END CLASS LAYER
1