Remove processing-java window

edited February 2017 in How To...

Im running processing-java from cmd line in another app. The app creates an image in an offscreen buffer, saves it and exits. However when ever the app is called there is still a window that pops up on screen, it takes focus away anything on screen. Is there a way to run processing-java with no window?

Thanks

Answers

  • void settings() {
      PImage img = createImage(300, 200, ARGB);
      java.util.Arrays.fill(img.pixels, #FF0000);
      img.save(dataPath("buffer.png"));
      System.exit(0);
    }
    
Sign In or Register to comment.