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

Device myDevice;

void setup() {
  size(1600, 1200);
  myDevice = new Device(width, height);
}
2 Likes