Hi, I am a new user for the layers library.
It is great idea to add this function in process.
I was trying in my application.
My application have two layers.
one is for drawing.
the other is for webcam image.
I am wondering is there a way to record these 2 layers separated and save as quick time in a same folder?
// paint method for Processing versions prior to 1.5
void paint() {
// This method MUST be present in your sketch for layers to be rendered!
if (layers != null) {
layers.paint(this);
} else {
super.paint();
}
}
void keyPressed() {
if (key == ' ') {
mm.finish(); // Finish the movie if space bar is pressed!
exit();
}
}
-----------------------------------------------------------------------------------------------
class MyLayer extends Layer {
MyLayer(PApplet parent) {
super(parent); // This is necessary!
}