You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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:

    g.setColor("#3d9ae2");
    [ [61,8,...],[...],[...] ].forEach(x=>g.fillPoly.bind(g))
    

    would really help.

About

Avatar for Gordon @Gordon started