void dropmouse() { //click in dropcount bounding box if( mouseY >= height-67 && mouseY <= height-50) { fill( 0); //check for minus click //rect( width-63, height-67, width-53, height-50); //minus bounding box if( mouseX >= width-63 && mouseX <= width-53) { text( "-", width-62, height-53); dropcount--; if( dropcount <= 0) { dropcount++; } } //check for plus click //rect( width-26, height-67, width-11, height-50); //plus bounding box if( mouseX >= width-26 && mouseX <= width-11) { text( "+", width-24, height-51); dropcount++; if( dropcount >= dropcountmax) { dropcount--; } } fill( 255); text( dropcount, width-50, height-50); } } void mouseReleased() { nowNow.reset(); }