background

Examples



const checkbox1 = $.makeCheckbox($.w/2, 30, 32);
const checkbox2 = $.makeCheckbox($.w/2, 80, 32);

function update() {
    checkbox1.background = "red";
    checkbox2.background = "blue";
    checkbox1.draw();
    checkbox2.draw();
}