printing PDF with geomerative
in
Contributed Library Questions
•
1 year ago
Hi, i am not sure what's about this code:
but i can not print to PDF...
help!!
- import geomerative.*;
import processing.pdf.*;
RFont font;
boolean saveOneFrame = false;
void setup()
{
size(400, 400);
smooth();
RG.init(this);
font = new RFont( "lucon.ttf", 80, RFont.CENTER);
}
void draw()
{
beginRecord(PDF, "test.pdf");
background(255);
translate(mouseX/2, mouseY/2);
font.draw("Hello?");
if (saveOneFrame == true) {
endRecord();
noLoop();
}
}
void KeyPressed () {
if (key == 'B' || key == 'b') { // When 'B' or 'b' is pressed,
saveOneFrame = true;
}
but i can not print to PDF...
help!!
1