class drawcircles { float drawingarray [] = new float [10]; int timesround =0; int a; int b; int botcount =0; //count through the bots, so we can draw accurately. int botnumber =0; void acceptarray(float [] nos){ drawingarray = expand(drawingarray, nos.length); arraycopy(nos, drawingarray); } void nextthree(int loops){ timesround=loops; /////get the numbers then draw the grid float temp1 = drawingarray[timesround]; float temp2 = drawingarray[timesround+1]; float temp3 = drawingarray[timesround+2]; temp1 = temp1+10000; temp2 = temp2+10000; temp3 = temp3+10000; temp1 = temp1/32; temp2 = temp2/32; temp3 = temp3/32; temp3 = temp3*10; int x = int(temp1); int y = int(temp2); y=y-1; if (y<0){ //we may have wanted the absolute top line, stops errors y=0; } y=y*imagesize; int arraycolour = y+x; //finds the right value in the array //stroke(0); board.checkgrid(temp1,temp2,arraycolour); board.ismouseover(); } }