class Button{ PGraphics context; int x, y, w=80, h=15; String label; Button(String label, int x, int y, PGraphics context){ this.context = context; this.x = x; this.y = y; this.label = label; } Button(String label, int x, int y, int w, int g, PGraphics context){ this.context = context; this.x = x; this.y = y; this.w = w; this.h = h; this.label = label; } void visualize(){ context.stroke( 200 ); context.fill( 92 ); context.textAlign( CENTER ); context.rect( x,y,w,h); context.fill( 200 ); context.text(label,x+w/2,y+11); } boolean mouseInput(int mx, int my){ return ( mxx && myy ); } }