Right now I'm not sure it makes sense to add things like animation to layout, but it'd be pretty easy to add it yourself. There's the 'custom' object type - so you can just provide your own renderer. If you call g.setClipRect you can ensure you don't draw in the wrong place, so you could then just use drawString with an offset - I don't think an offscreen buffer is needed
For the grocery list, does something like E.showMenu make more sense as it'll be scrollable.
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.
Right now I'm not sure it makes sense to add things like animation to layout, but it'd be pretty easy to add it yourself. There's the 'custom' object type - so you can just provide your own renderer. If you call
g.setClipRect
you can ensure you don't draw in the wrong place, so you could then just usedrawString
with an offset - I don't think an offscreen buffer is neededFor the grocery list, does something like
E.showMenu
make more sense as it'll be scrollable.