@Wilberforce: Could you elaborate with some more detail? I'm not clear on what you're suggesting.
My intent was to eliminate the extra line of code setting the color before calling the drawing commands, as I need to change colors regularly for animating various widgets, and the Button widget (which I'm working on right now) has 3D effects (looks raised, then pushes in when pressed).
I'm interested in your suggestion -- I just need to understand it :-)
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.
@Wilberforce: Could you elaborate with some more detail? I'm not clear on what you're suggesting.
My intent was to eliminate the extra line of code setting the color before calling the drawing commands, as I need to change colors regularly for animating various widgets, and the Button widget (which I'm working on right now) has 3D effects (looks raised, then pushes in when pressed).
I'm interested in your suggestion -- I just need to understand it :-)