All Projects → pixijs → pixi-extra-filters

pixijs / pixi-extra-filters

Licence: MIT license
[deprecated] Please see https://github.com/pixijs/pixi-filters

Programming Languages

javascript
184084 projects - #8 most used programming language
GLSL
2045 projects

IMPORTANT: This project is no longer maintained. All community filters have been combined with the core pixi-filters and are not longer maintained here. Pull requests should be made to pixi-filters.

pixi-extra-filters

Some extra filters for pixi that aren't in the core plugin.

Usage

Browserify

If you use browserify you can use pixi-extra-filters like this:

var PIXI = require('pixi.js'),
    extraFilters = require('pixi-extra-filters');

var sprite = new PIXI.Sprite(someTexture);
sprite.filters = [new extraFilters.GlowFilter(15, 2, 1, 0xFF0000, 0.5)];

Prebuilt Files

If you are just including the built files, pixi-extra-filters extends the PIXI.filters namespace with its filters:

var sprite = new PIXI.Sprite(someTexture);
sprite.filters = [new PIXI.filters.GlowFilter(15, 2, 1, 0xFF0000, 0.5)];

Building

You will need to have node setup on your machine.

Then you can install dependencies and build:

npm i && npm run build

That will output the built distributables to ./dist.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].