import processing.serial.*; static int FRAMERATE=20; int fadetime=1000/FRAMERATE /10 *4; //fadetime in centiseconds SMOOOOTH Serial sPort; //int boxnum = 1+2+3+4+5+6+7; int boxnum=50; color box[] = new color[boxnum]; int boxid[] = new int[boxnum]; int MAXTREEWIDTH=7; int MAXTREEHEIGHT=7; int boxiTree[][] = new int[MAXTREEWIDTH][MAXTREEHEIGHT]; color colorTree[][] = new int[MAXTREEWIDTH][MAXTREEHEIGHT]; float testcolorhue=0; float time=0; void setup() { size(200, 200); frameRate(FRAMERATE); /*for (int i=0;i