Also a set of duplicated Graphics functions with "2" appended (e.g. fillRect2()) that can be used in place of the standard functions, but allow for the inclusion of a color parameter to set the drawing color.
Why not create a pen object that you set the colour on, and then call the same function with the same arguments on that object. It's constructor could take the lcd as as a param and a colour.
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.
Why not create a
pen
object that you set the colour on, and then call the same function with the same arguments on that object. It's constructor could take thelcd
as as a param and a colour.