1.1.4 • Published 7 years ago

pixi-extra-filters v1.1.4

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

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.

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago