I'd say it depends a bit on the actual size/style of the image. Given the image you've got there, I'd basically go with Option 1.
Since I imagine your code is saved to flash and executed from there, the data will be streamed out as required, taking up no RAM unless needed.
IMO the SVG approach makes sense when you have a big vector image - for smaller things Bitmap will win out. Also while the SVG converter is doing a great job of extracting the actual data, how it's represented in Espruino could really be improved!
I could imagine that something like:
[ [61,8,...],[...],[...] ].forEach(x=>g.fillPoly.bind(g))
would really help.
© Espruino, powered by microcosm.
Report a problem