Skip to content

FabianElsmer/pixi-svg-graphics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIXI-SVG-Graphics

This module can draw SVG documents on PIXI.js's Graphics object, making them scaleable and crisp.

Usage:

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

Todos:

  • Add font support

About

Draws SVG documents on PIXI.Graphics objects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.2%
  • HTML 0.8%