class Cell{ boolean status; PVector loc; int density; Cell(PVector _loc){ loc=_loc.get(); } void show(){ noStroke(); if (density==2){fill(255,255,0);} if (density==1){fill(0,0,255);} rect(loc.x,loc.y,size,size); } } void mouseDragged(){ int x=(int)(mouseX*col/width); int y=(int)(mouseY*row/height); _density=0; if (x>1 && x0 && y