//***************************************************************************** // TITLE: Template // DESCRIPTION: // AUTHOR: Prof Jarek Rossignac // DATE CREATED: October 2008 // EDITS: //***************************************************************************** boolean showHelpText=false; // toggled by keys to show/hide help text boolean printIt=false; // temporarily set when key '?' is pressed and used to print some debugging values void setup() { PFont font = loadFont("Courier-14.vlw"); textFont(font, 14); // load font smooth(); strokeJoin(ROUND); strokeCap(ROUND); rectMode(CENTER); // set up window and drawing modes frameRate(30); size(800, 800); createColors(); myInit(); // initialize } void draw() { background(121); strokeWeight(1); // sets background if (showHelpText) showHelp(); else myActions(); printIt=false; }; // end of draw