color broken with pdf export
in
Core Library Questions
•
2 years ago
Hi All,
The code below does not produce color properly in the pdf file, even though everything looks fine in the Processing window. Other examples I have tried that do not use beginRecord() and endRecord() work fine. Any ideas why?
The code below does not produce color properly in the pdf file, even though everything looks fine in the Processing window. Other examples I have tried that do not use beginRecord() and endRecord() work fine. Any ideas why?
- import processing.pdf.*;
void setup() {
size(400, 400);
colorMode(HSB,255);
noLoop();
beginRecord(PDF, "filename.pdf");
}
void draw() {
// Draw something good here
fill (0,255,255);
rect(width/2, height/2,20,20);
endRecord();
}
2