Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
Adam Golding
Adam Golding's Profile
1
Posts
0
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
How Do I Switch Renderers?
[3 Replies]
15-Aug-2013 03:18 PM
Forum:
Programming Questions
The code below causes a RendererChangeException--what's the proper way to display for awhile in P2D, and then in the default renderer?
int phase = 1;
public void setup(){
size(200,300,P2D);
}
public void draw(){
if(phase == 1 && frameCount > 100 ) {
setupPhaseTwo();
phase = 2;
//draw something in P2D here
} else if (phase == 2) {
//draw soemthing in default renderer here
}
}
void setupPhaseTwo(){
size(200,300);
}
«Prev
Next »
Moderate user : Adam Golding
Forum