border

Controls the colour of the border that is visible when clicking on a button.

Examples



const A = $.makeButton(80, 30, 120, 30, "Click me!");
const B = $.makeButton(80, 60, 120, 30, "Click me!");
const C = $.makeButton(80, 90, 120, 30, "Click me!");

function update() {
    A.border = "lime";
    B.border = "purple";
    C.border = "rgb(100, 250, 250)";
    A.draw();
    B.draw();
    C.draw();
}