void setup(){ size(800,600); } void draw(){ button(200,60,200,30,"test"); } void button(float x, float w, float y, float h,String text){ fill(255); rect(x,y,w,h,15); fill(0); stroke(0); text(text,w,h-y+y/2); }