Saved PDF is blank :(
in
Core Library Questions
•
4 months ago
Hello guys :)
I have a short question.
Why does the following Sketch give me a blank pdf?
- import processing.pdf.*;
- boolean record;
- void setup () {
- size(600, 600);
- smooth();
- background(255);
- }
- void draw () {
- if (record) {
- beginRecord(PDF, "frame-####.pdf");
- }
- stroke (0,0,0);
- line(frameCount*100, 600 , frameCount*100, 0);
- if (record) {
- endRecord();
- record = false;
- }
- }
- void keyPressed() {
- record = true;
- }
1