Hey guys,
i am trying to record a pdf with a page for each frame, but it is not working. I tried the official example from the processing-reference, but is just saves a single page of the last frame of my sketch. Is it, because i am using processing2?
import processing.pdf.*;
void setup() {
size(400, 400);
beginRecord(PDF, "everything.pdf");
}
void draw() {
// Be sure not to call background, otherwise your file
// will just accumulate lots of mess, only to become invisible
// Draw something good here
line(mouseX, mouseY, width/2, height/2);
}
void keyPressed() {
if (key == 'q') {
endRecord();
exit();
}
}