String lines[]; String list[]; Words words; int curLine = 0; int frame = 0; int bgColor = 0; int fColor = 255; void setup() { size(400,300,P3D); framerate(30); lines = loadStrings("Lipsum.txt"); println(lines.length + " lines"); words = new Words(); } void draw() { if (frame++>10*framerate) frame=0; if (frame%3==0) readLine(); fill(bgColor,25); rect(0,0,width,height); words.draw(); } void keyPressed() { if (keyCode == 32) saveFrame(hour()+"-"+minute()+"-"+second()); } void mousePressed() { bgColor = bgColor==0?255:0; fColor = fColor==0?255:0; } void readLine() { if (++curLine>=lines.length) curLine=0; list = split(lines[curLine]); for (int j=0; j