Fullscreen width and height variables returning 100

I am not really sure but I think the code outside of functions is executed first (Correct me if I’m wrong) then the setup then draw functions. Try putting “y = width;” at the end of setup() like here:

float y;

void setup() {
  fullScreen();
  background(255);

  y = width;
}

Notice the declaration of y outside of setup so It is a global variable (accessible outside of setup in this case)