//***************************************************************************** // TITLE: VISIBILITUY PROJECT FOR CS7491 // DESCRIPTION: Track which discks are visible // AUTHOR: Prof Jarek Rossignac // DATE UPDATED: February 2008 //***************************************************************************** // Students should myActions and visibility folders boolean showHelpText=true, showMenu=true; // toggled by keys to show/hide help text and manu void setup() { size(1100, 800); smooth(); setColors(); strokeJoin(ROUND); strokeCap(ROUND); // set up window and drawing modes PFont font = loadFont("Courier-14.vlw"); textFont(font, 12); // load font loadButtons(); loadToggles(); // loads the menus (buttons, toggles) declare(); reset(); // initializes the disks and view ray } void draw() { background(121); strokeWeight(1); smooth(); // sets background if (showHelpText) {showHelp(); showColors();} // display welcome help text else myActions(); // performs my actions if(showMenu) {strokeWeight(1); Buttons.show(); Toggles.show(); text("2D visibility study",width-290,280); text("Jarek Rossignac",width-290,300); }; printIt=false; };