3 ms·
I'd like to see JavaScript code provided that is capable of drawing the same thing in a Canvas2D context. I can work with you on what that would look like. (I'
by erichocean 14y ago
I'd like to see JavaScript code provided that is capable of drawing the same thing in a Canvas2D context. I can work with you on what that would look like.
(I'm the author of Blossom, an upgrade to SproutCore that does all UI elements in Canvas -- see https://github.com/fohr/blossom. https://github.com/fohr/blossom.)
UPDATE: Yes, I'm aware there are SVG converters out there. It's still annoying.
- alz 14y agoInteresting, yea I guess that's exactly what would be required to achieve this, a function capable of reliably translating between path data formats and also canvas instructions. Path data can be annoying though, so many ways to express the same thing. Happy to collab on a jsfiddle? Once we have that the rest should be fairy simple.
- erichocean 14y agoI'd start with this and see what the output looks like: http://www.professorcloud.com/svg-to-canvas/ http://www.professorcloud.com/svg-to-canvas/