I made a tool to convert SVG files into a format that's easier to render on a Bangle.js. Just feed the SVG through the converter, paste it in your source file, slap in some rendering code, and away you go!
The converter itself is moderately limited, but it should work for simple graphics. It basically converts all the shapes in the SVG into lists of points that can be fed to drawPoly or fillPoly.
I won't be able to test this outside the emulator until my smart watch arrives, so I would love to hear reports as to how well it works :)
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.
I made a tool to convert SVG files into a format that's easier to render on a Bangle.js. Just feed the SVG through the converter, paste it in your source file, slap in some rendering code, and away you go!
The converter itself is moderately limited, but it should work for simple graphics. It basically converts all the shapes in the SVG into lists of points that can be fed to drawPoly or fillPoly.
I won't be able to test this outside the emulator until my smart watch arrives, so I would love to hear reports as to how well it works :)
GitHub repo (including the code for rendering the final output): https://github.com/nebbishhacker/svg2bangle
The tool itself: https://nebbishhacker.github.io/svg2bangle
Demo: https://www.espruino.com/ide/emulator.html?gist=7eda1614a48719190c7823cb10068f40