PixiJS — The HTML5 Creation Engine
The aim of this project is to provide a fast lightweight 2D library that works across all devices. The PixiJS renderer allows everyone to enjoy the power of hardware acceleration without prior knowledge of WebGL. Also, it's fast. Really fast.
Your support helps us make PixiJS even better. Make your pledge on Patreon and we'll love you forever!
Setup
PixiJS can be installed with npm to integration with Webpack, Browserify, Rollup, Electron, NW.js or other module backed environments.
Install
npm install pixi.js
There is no default export. The correct way to import PixiJS is:
Basic Usage Example
// The application will create a renderer using WebGL, if possible,// with a fallback to a canvas render. It will also setup the ticker// and the root stage PIXI.Container.const app = ; // The application will create a canvas element for you that you// can then insert into the DOM.documentbody; // load the texture we needPIXIloader;
License
This content is released under the (http://opensource.org/licenses/MIT) MIT License.