Is there a way to convert SVG files to HTML5's canvas compatible commands?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
If you want manipulate objects after conversion I recommend http://www.kineticjs.com/ it supports also SVG path data format. For instance: http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-path-tutorial/.
It's pretty easy to loop through svg and change rectangles, paths, lines etc.. to coresponding kineticJS (canvas) objects.
Here's my attempt!
http://appsynergy.net/projects/converting-svg-path-to-html5-canvas/
canvg seems to be a better solution. It is an active project as of January 2012.
canvas-svg hasn't been updated since it was published in June 2009.