Button Element btn
js
btn(id, r, action)id(optional): element IDr(required): display rectangle, typeRectaction(optional): click action; see data types
After the element is defined, its id also provides the following values in addition to the Rect:
id.pressing: 1 if the button is currently pressed, 0 otherwiseid.last: time of last press in seconds; -1 if never pressedid.count: number of times the button has been pressed