Skip to content

Instantly share code, notes, and snippets.

@RandomEtc
Created March 28, 2012 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RandomEtc/2223618 to your computer and use it in GitHub Desktop.
Save RandomEtc/2223618 to your computer and use it in GitHub Desktop.
resizeable sketch in Processing (with notification of new size)
void setup() {
size(640,480);
frame.setResizable(true);
}
void draw() {
background(frameCount);
}
void setBounds(int x1, int y1, int w, int h) {
super.setBounds(x1,y1,w,h);
println(w + "," + h);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment