Draw SVG directly to html canvas
1 min readJan 13, 2019
two simple functions to draw svg directly to html canvas.
first drawSvg() function can be used in game draw() loops because it doesn’t wait for the image to load!
the second function drawSvg2() can be used if your are getting the svg from network because it waits for the image to load.