Why this ArrayOutOfBoundsException:Coordinate out of bounds!

This script starts and lets you resize the window but if you stretch it enough the script crashes with ArrayOutOfBoundsException.

void setup() {
  surface.setResizable(true);
}

void draw() {
  loadPixels();
  text(pixels.length, 5, 15);
}
Sign In or Register to comment.