PImage sample; color[] colors = new color[10]; boolean playing = false; PiSquare[] pis; int pixwid = 15; int len; String thePi[]; void setup(){ thePi = loadStrings("1000000.txt"); sample = loadImage("pink.jpg"); size(450,450,JAVA2D); background(0); frameRate(30); noStroke(); //smooth(); for(int i=0; i<10; i++){ colors[i] = sample.get(int(random(sample.width)),int(random(sample.height))); fill(colors[i]); rect(i*width/10,0,width/10,height); } int spa=width/pixwid; len = spa*spa; int inc = floor(1000000/(spa*spa)); pis = new PiSquare[spa*spa]; for (int j=0; j