is it possible to inject a remap function into Graphic lib?
Not really - the act of calling JS for every pixel write would really slow things down. For example you can't just remap the coordinates of a rectangle, because it could bridge two panels.
It's better to do what I did in the example above and just use Graphics itself to remap to each separate panel. It'll be much faster too.
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.
Not really - the act of calling JS for every pixel write would really slow things down. For example you can't just remap the coordinates of a rectangle, because it could bridge two panels.
It's better to do what I did in the example above and just use Graphics itself to remap to each separate panel. It'll be much faster too.