class Squirt { float column; float row; float layer; Vector3D loc; color squirtcol; Squirt() { row=mouseY/scl-height/4;//determined experimentally//+zoff; column= (mouseX/scl)-width/2;// / scl; layer= curlayer; squirtcol= curcolor; loc= new Vector3D (column, layer, row); } void run() { rendersquirt(); rendersquirtshadow(); } float getcol() { return column; } float getlayer() { return layer; } float getrow() { return row; } color getcolor() { return curcolor; } void rendersquirt() { //draw boxes to represent partialsquirts pushMatrix(); //1 translate(loc.x, loc.y, loc.z); fill(squirtcol);//working box(boxsize); popMatrix(); //1 } void rendersquirtshadow() { pushMatrix(); //1 translate(loc.x, floory, loc.z); fill(0); box(boxsize, 1, boxsize); popMatrix(); //1 } }