It would give you a more flash-style vector 3d, and potentially hardware optimized polygon and antialiased stroke drawing.
As for the noLoop() thing, I was merely making the comment on the pdf support being somewhat confusing for beginners, how it's setup now is not exactly intuitive. The record statements are fine.
I tried using non-interactive mode and the pdf file is corrupt:
Code:import processing.pdf.*;
size(200,200,PDF,"test.pdf");
line(0,0,100,100);
exit();
More specifically, the file size is 0. Adding/removing exit() makes no difference. Same with background/stroke.
The same happens for:
Code:import processing.pdf.*;
void setup() {
size(200,200,PDF,"test.pdf");
}
void draw() {
background(255);
stroke(0);
line(0,0,100,100);
}
void mousePressed() {
exit();
}
The following
does work, however:
Code:import processing.pdf.*;
void setup() {
size(200,200,PDF,"test.pdf");
}
void draw() {
beginRecord(PDF, "frame-####.pdf");
background(255);
stroke(0);
line(0,0,100,100);
endRecord(); // saves the file
}
void mousePressed() {
exit();
}
It would be interesting if you could somehow make multipage pdf files.
Anyway, looks good when it works, I'll have to play with it more when I get a chance.
Marcello