/** * Get as many action verbs as I need * will be tied to tide tables for London Bridge * */ import java.util.*; //http://www.pla.co.uk/pdfs/hydro/Nov08.pdf PFont phont; String[] act_verb; String[] li, a; int def; void setup(){ size(300, 700); phont = loadFont("TrebuchetMS-Bold-16.vlw"); act_verb = loadStrings("action_Verbs.txt"); fill(123); textFont(phont, 16); } void draw(){ background(200, 206, 172); frameRate(1); int d = day(); // Values from 1 - 31 int m = month(); // Values from 1 - 12 int y = year(); // 2003, 2004, 2005, etc. int h = hour(); int mi = minute(); int gap = minute(); String s = String.valueOf(d); String t = String.valueOf(m); String u = String.valueOf(y); if(mi<10){ gap = 0; text(h + " :" + gap +mi + " "+s + " " + t + " " +u , 160, 12); } else if(mi>10){ text(h + " :" +mi + " "+s + " " + t + " " +u , 160, 12); } //approximate tide times and heights for 06/11/09 if((h>=6) && (h<=12)){ def = 6*2; } else if((h>=12) && (h<19)){ def = 2*2; } else if(h>=19){ def = 6*2; } // def = (int)random(act_verb.length/3); //def = number of calls to action for(int i =0;i