// --------------------------------------------------- // IS THE MOUSE OVER A RECTANGLE? // --------------------------------------------------- boolean mouseInRect(float x1, float y1, float x2, float y2) { if((mouseX > x1) && (mouseX < x2) && (mouseY > y1) && (mouseY < y2)) return true; return false; } // --------------------------------------------------- // DRAW A BORDER AROUND A TEXT // --------------------------------------------------- void textBorder(String txt, float x, float y) { text(txt,x+1,y+1); text(txt,x+1,y-1); text(txt,x-1,y+1); text(txt,x-1,y-1); } // --------------------------------------------------- // DRAW A BORDER AROUND A TEXT // --------------------------------------------------- void textShadow(String txt, float x, float y) { text(txt,x+1,y+1); }