This module can draw SVG documents on PIXI.js's Graphics
object, making them scaleable and crisp.
Using as a module
var svg = document.querySelector('svg#MySVGTag')
var SVGGraphics = require('pixi-svg-graphics')
var graphics = new PIXI.Graphics()
SVGGraphics.drawSVG(graphics, svg)
Or just include pixi-svg-graphics.min.js in your HTML:
<script src="pixi-svg-graphics.min.js"></script>
The module is then available using window.SVGGraphics
- Add font support