Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
gil.vancayseele
gil.vancayseele's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
help with layer and protablet and video librairies
[0 Replies]
10-May-2013 06:07 AM
Forum:
Contributed Library Questions
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
«Prev
Next »
Moderate user : gil.vancayseele
Forum