$.makeButton( x, y, w, h, label)

Returns a button

  • x : number //
  • y : number //
  • w : number //
  • h : number //
  • label : string //Default: 'btn'

Examples

const btn = $.makeButton(
    50, //x
    50, //y
    80, //w
    30, //h
    "btn" //label
); 
            
function update() {
    btn.draw();
}