PixiJS Filters
PixiJS v7 optional display filters.
Filters include:
Examples
View the PixiJS Filters Demo to interactively play with filters to see how they work.
Installation
Using NPM:
npm install pixi-filters
Using Yarn:
yarn add pixi-filters
Usage
Bundler (Rollup, Webpack, etc)
Use imports to grab the specific filter to use.
import { DotFilter } from 'pixi-filters';
const filter = new DotFilter();
Browser
Filters are automatically added to the PIXI.filters
global namespace.
<script src="pixi.min.js"></script>
<script src="pixi-filters.js"></script>
<script>
const filter = new PIXI.filters.DotFilter();
</script>
Documentation
API documention can be found here.