How to use the pixi.js.Application function in pixi

To help you get started, we’ve selected a few pixi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dacaher / pixijs-ts-boilerplate / src / scripts / pixi-app / pixi-app.ts View on Github external
constructor(options?: PixiAppOptions) {
        if (!options) {
            options = this.defaultOptions;
        }

        this.mediaInfoViewer = new MediaInfoViewer();

        this.app = new PIXI.Application(options);
        this.configure(options);
        this.ticker.add(this.resize.bind(this));

        this.appOptions = options;
    }
github davidfig / pixi-viewport / docs / ts / demo.ts View on Github external
function createApplication()
{
    renderer = new PIXI.Application({ transparent: true, width: window.innerWidth, height: window.innerHeight, resolution: window.devicePixelRatio })
    document.body.appendChild(renderer.view)
    renderer.view.style.position = 'fixed'
    renderer.view.style.width = '100vw'
    renderer.view.style.height = '100vh'
    renderer.view.style.top = 0
    renderer.view.style.left = 0
    renderer.view.style.background = 'rgba(0,0,0,.1)'
}
github davidfig / intersects / docs / code.js View on Github external
function setup()
{
    renderer = new PIXI.Application({ transparent: true, resolution: window.devicePixelRatio, view: document.querySelector('.view') })
    document.body.appendChild(renderer.view)
    ease = new Ease.list()
}

pixi

Super fast 2D rendering engine for browserify, that uses WebGL with a context 2d fallback.

MIT
Latest version published 9 years ago

Package Health Score

45 / 100
Full package analysis