remove decoration window under P3D

edited December 2013 in How To...

Hello, anybody know a way to remove the border under P3D ? because that's work fine in classic Mode but with P2D and P3D it's a way to crash the sketch

void setup(){
  removeBorder(true) ;
  size(300,300, P3D) ;
}

void removeBorder(boolean deco) {
  frame.removeNotify();
  frame.setUndecorated(deco);
  frame.addNotify();
}
Tagged:

Answers

  • edited December 2013 Answer ✓

    I've found this example lying around: =:)

    /** 
     * setUndecorated (v4.21)
     * by  rbrauer (2013/Jul)
     * mod GoToLoop (2013/Dec)
     * 
     * forum.processing.org/one/topic/
     * setundecorated-conflic-with-loadlont
     *
     * forum.processing.org/two/discussion/2018/
     * remove-decoration-window-under-p3d
     */
    
    void setup() {
      if ( !isGL() )   removeFrameBorder();
    
      size(400, 300, P3D);
    
      frameRate(60);
      smooth(8);
      stroke(#00FFFF);
      strokeWeight(1.5);
      textSize(32);
    }
    
    void draw() {
      background(0300);
    
      fill(#FF0000);
      text(frameCount, width - 80, 40);
    
      fill(#0000FF);
      translate(frameCount % width, height >> 1);
      sphere(96);
    }
    
    void removeFrameBorder() {
      frame.removeNotify();
      frame.setUndecorated(true);
      frame.addNotify();
    }
    
  • Thx Mister GoToLoop work perfectly

Sign In or Register to comment.