mirror of
https://github.com/processing/processing4.git
synced 2026-01-26 09:51:09 +01:00
Resolve moving the PDF renderer information provided in size into settings as part of preproc. Resolves #66.
15 lines
217 B
Plaintext
15 lines
217 B
Plaintext
import processing.pdf.*;
|
|
|
|
void setup() {
|
|
size(400, 400, PDF, "filename.pdf");
|
|
}
|
|
|
|
void draw() {
|
|
// Draw something good here
|
|
line(0, 0, width/2, height);
|
|
|
|
// Exit the program
|
|
println("Finished.");
|
|
exit();
|
|
}
|