shows if the mouse button was released while on top of the button last frame
released
Examples
const button = $.makeButton($.w/2, $.h/2, 100, 50, "Click me!");
let timer = 0;
function update() {
button.draw();
if (button.released) {
timer = 60;
} else if (timer > 0) {
timer -= 1;
}
if (timer > 0) {
button.label = "Clicked!";
} else {
button.label = "Click me!";
}
}