Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
s.benoit.studio
s.benoit.studio's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Export PDF and Background
[3 Replies]
23-Dec-2011 03:38 AM
Forum:
Core Library Questions
Hi everybody;
when i used the "Many pages" example from pdf export example, i just can't get the background shown on the preview. like this:
The pdf file is just white and automatically refresh my sketch. like this:
How can i get the line superposition i have on the original file? Thanks :-)
here is my code:
import processing.pdf.*;
PGraphicsPDF pdf;
void setup() {
size(600, 600);
frameRate(4);
pdf = (PGraphicsPDF)beginRecord(PDF, "Lines.pdf");
beginRecord(pdf);
background(255);
}
void draw() {
stroke(0, 20);
strokeWeight(20.0);
line(mouseX, 0, width-mouseY, height);
pdf.nextPage();
}
void mousePressed() {
endRecord();
exit();
}
«Prev
Next »
Moderate user : s.benoit.studio
Forum