Having Issue Setting Screen size in setup

Hello @avong,

Try this:

void settings()
  {
  println(displayWidth, displayHeight); // Bonus!
  size(displayWidth, displayHeight);    // works here! 
  }
  
void setup()
  {
  //size(displayWidth, displayHeight); //gives an error!
  }

I do not know what has change between versions and used my experience and experimented a bit.

Does this work at your end?

Update

This worked with:

  • W10 Processing 3.5.4 and 4.1.1
  • Ubuntu 22.04.1 LTS Processing 4.1.1 in a VMWare VM

:)

1 Like