This is awesome, thank you! I'd hacked something up a while back for loading SVGs into PCBs (https://github.com/gfwilliams/svgtoeagle) and I'm going to have to change it now to use your method of getting SVG points out :)
Do you think it'd make sense to have an option to output the data as a series of draw calls as well?
Is it something you'd consider adding to https://github.com/espruino/EspruinoWebTools and maybe letting me a page to espruino.com along the lines of http://www.espruino.com/Image+Converter for?
I drew some inspiration from svgtoeagle when I was putting this together ☺️
Adding an option to output draw calls directly would be easy enough. The only downside is that the draw calls wouldn't allow for convenient on-the-fly translation/rotation/scaling.
Having a page for this on espruino.com would be great ☺️. I'll see about adding it to the EspruinoWebTools repo when I find the time.
© Espruino, powered by microcosm.
Report a problem