would having some graphics context save/restore/push/pop methods make sense in such cases? so one would not need to call g.setFont, g.setColor, g.setBackground, g.setFontAlign, ... over and over again?
not sure how hard it could be to implement, maybe some memcpy of some structure. could save some time when drawing to screen in multiple repeating styles
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.
would having some graphics context save/restore/push/pop methods make sense in such cases? so one would not need to call g.setFont, g.setColor, g.setBackground, g.setFontAlign, ... over and over again?
not sure how hard it could be to implement, maybe some memcpy of some structure. could save some time when drawing to screen in multiple repeating styles