Just a note that I'm implementing this as a variable as @rigrig suggested, and I modified clearRect/etc so they can take an object as well as numbers.
So now it's as easy as:
g.clearRect(Bangle.appRect);
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Just a note that I'm implementing this as a variable as @rigrig suggested, and I modified clearRect/etc so they can take an object as well as numbers.
So now it's as easy as: