Processing – Present Mode Background Color

How to change the background color while running in Present Mode?

Add to setup() (NOTE: doesn’t work for Processing 3+!)

((javax.swing.JFrame) frame).getContentPane().setBackground(new java.awt.Color(0, 0, 0));

Alternative method (also Processing 3+!):

  • close Processing!
  • edit <user name>/Appdata/Roaming/Processing/preference.txt
  • make sure the run.present.bgcolor line looks like this:
    run.present.bgcolor=#000000