background

Examples



const A = $.makeButton(20, 30, 30, 30, "A");
const B = $.makeButton(20, 60, 30, 30, "B");
const C = $.makeButton(20, 90, 30, 30, "C");

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