We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello all, I want change the size in Processing 306, but with P2D and P3D tha new size is not apply. Any body have an idea ?
void setup() {
// size(100, 100); // ok
size(100, 100,P2D); // problem
// size(100, 100,P3D); // problem
if(frame != null ) frame.setResizable(true);
}
void draw() {
background(0) ;
frame.setSize(800,400);
}
Answers
Hi GotoLoop, in your link I find no reference to change the size of display sketch ??? I write an other piece of code around that. Like I say on Github, this one show a little problem with the new height. But change nothing in P2D or P3D. For info isGL() don't work with Processing 307.
https://github.com/processing/processing/issues/3223
Sure for this time I'll stay in Processing 305. No choice, and that's work fine on my project. But I ask this question just in case there is an easy solution, but I see Ben Fry ask to Codeanticode to check this problem on Github...so this setsize() problem with P2D and P3D can be a serious problem.
I don't understand what you mean about PApplet is not an Applet. I think my level in code is too low :)
http://www.oracle.com/technetwork/java/painting-140037.html
https://github.com/processing/processing/blob/master/core/src/processing/core/PSurface.java
Thx for the information. I'm not sure to understand all :) but I've a global idea of what's happen in Processing PSurface.