Re:Two.js
by zmmmmm on Thursday July 16, 2015 @08:02PM
(#9900630)
I love SVG support because it means you can render something in vector art in the browser which is also downloadable as a file by the user. Drawing stuff in the browser which is then stuck there is cute but lacks an important layer of interoperability with the rest of the computing ecosystem. So here we appear to get the best of all worlds: render to whatever is fastest in the browser but get automatic "export as SVG" for free.
[ Parent
| on HN ]
We could make an HTML-Canvas-compliant library that renders SVG.
In fact, I already enabled one: https://github.com/Automattic/node-canvas
Re:Two.js
by hansolo669 on Thursday July 16, 2015 @08:15PM
(#9900680)
You can save out a <canvas> to png quite easily: canvas.toDataURL();