Problem with setup() loading order, instantiate an object with 'width' and 'height'

If you want to use global vars to set width and height use

settings(){
  size(int1, int2);
}

Outside of setup.

1 Like