Change size in P2D and P3D

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

Sign In or Register to comment.