class grid{ char[] carr = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; float t1; float t2; float t3; float stage= 625.0; int gridsize=6;////////////////////////////////////////////changegrid!!!!!!!!!!!!!!!!!!! float gridadd = stage/gridsize; void drawgrid(){ stroke(255); float currenty = 0.0; float currentx =0.0; for(int i=0;i<=gridsize;i++){ currentx=currentx+gridadd; line(0,currentx,stage,currentx); } for(int i=0;i<=gridsize;i++){ currenty=currenty+gridadd; line(currenty,0,currenty,stage); } } void checkgrid(float no1, float no2, int arraycolour){//no z t1=no1;//x t2=no2;//y int thex; int they; thex=int(t1/gridadd); they=int(t2/gridadd); color c = pic.pixels[arraycolour]; float r = red(c); float g = green(c); float b = blue(c); fill(r,g,b,20); //fill(0,30); rect(thex*gridadd, they*gridadd, gridadd, gridadd); } void ismouseover(){ char tempchar='.'; int tempint=0; stroke(255); fill(255); if (keyPressed == true) { for (int i=0;i