Skip to content

Instantly share code, notes, and snippets.

@jearmstrong21
Created April 3, 2018 14:19
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 jearmstrong21/d9c91fc9afbd7834033f9b1f33b3e3b6 to your computer and use it in GitHub Desktop.
Save jearmstrong21/d9c91fc9afbd7834033f9b1f33b3e3b6 to your computer and use it in GitHub Desktop.
ProcessingSketchStructure
void setup(){
doInit();
}
void mousePressed(){
doInit();
}
void draw(){
doUpdate();
doDisplay();
}
void doInit(){
//initialize global variables and stuff
}
void doUpdate(){
//update global variables and stuff
}
void doDisplay(){
//display global variables and stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment