Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
ticof2002
ticof2002's Profile
1
Posts
2
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
Exporting to dxf or pdf
[4 Replies]
26-Jan-2013 11:22 AM
Forum:
Core Library Questions
I am very new at this and can't seem to export my file to dxf or pdf. I know im supposed to import the pdf or dxf code at the beginning of the code but the rest of it has me stumped. I would really appreciate any help with this.
ArrayList history = new ArrayList();
float distthresh = 60;
void setup(){
size(900,600);
background(255);
stroke(0,50);
smooth();
}
void draw(){
}
void mouseDragged(){
PVector d = new PVector(mouseX,mouseY,0);
history.add(0,d);
for (int p=0; p<history.size(); p++){
PVector v = (PVector) history.get(p);
float joinchance = p/history.size() + d.dist(v)/distthresh;
if (joinchance < random(0.4)) line(d.x,d.y,v.x,v.y);
}
}
void keyPressed(){
if (key == ' ') {
background(255);
history.clear();
}
}
«Prev
Next »
Moderate user : ticof2002
Forum