String [] rawtext = new String[10629]; int x=0; Fragment[] f; void setup(){ size(600,400,P3D); //smooth(); frameRate(30); fill(255); PFont font = loadFont("Apple-Chancery-48.vlw"); textFont(font,22); textAlign(CENTER); String lines[] = loadStrings("pl.txt"); f=new Fragment[100];// or use 10629 if you want to load the whole thing duh //for (int i=0; i < lines.length; i++) { for (int i=0; i < 100; i++) { rawtext[i] = lines[i]; f[i]=new Fragment(rawtext[i],width/2,i*40,random(5)); } } void draw(){ background(0); for (int i=0;i<100;i++){ f[i].display(); f[i].sink(); } if (mousePressed){ for (int i=0;i<100;i++){ f[i].ypos=random(10); } } } class Fragment { String t; // text float xpos; // xposition float ypos; // yposition float weight; // weight of text Fragment(String it, float ixp, float iyp, float iw) { xpos = ixp; ypos = iyp; t = it; weight = iw; } void sink (){ if (ypos