Skip to content

Latest commit

 

History

History
151 lines (126 loc) · 16 KB

README.md

File metadata and controls

151 lines (126 loc) · 16 KB

PixiJS Filters

Node.js CI npm version

Demo

View the PixiJS Filters Demo to interactively play with filters to see how they work.

Filters

All filters work with PixiJS v7.

Filter Preview
AdjustmentFilter
@pixi/filter-adjustment
View demo
adjustment
AdvancedBloomFilter
@pixi/filter-advanced-bloom
View demo
advanced-bloom
AsciiFilter
@pixi/filter-ascii
View demo
ascii
BevelFilter
@pixi/filter-bevel
View demo
bevel
BloomFilter
@pixi/filter-bloom
View demo
bloom
BulgePinchFilter
@pixi/filter-bulge-pinch
View demo
bulge-pinch
ColorGradientFilter
@pixi/filter-color-gradient
View demo
color-gradient
ColorMapFilter
@pixi/filter-color-map
View demo
color-map
ColorOverlayFilter
@pixi/filter-color-overlay
View demo
color-overlay
ColorReplaceFilter
@pixi/filter-color-replace
View demo
color-replace
ConvolutionFilter
@pixi/filter-convolution
View demo
convolution
CrossHatchFilter
@pixi/filter-cross-hatch
View demo
cross-hatch
CRTFilter
@pixi/filter-crt
View demo
crt
DotFilter
@pixi/filter-dot
View demo
dot
DropShadowFilter
@pixi/filter-drop-shadow
View demo
drop-shadow
EmbossFilter
@pixi/filter-emboss
View demo
emboss
GlitchFilter
@pixi/filter-glitch
View demo
glitch
GlowFilter
@pixi/filter-glow
View demo
glow
GodrayFilter
@pixi/filter-godray
View demo
godray
GrayscaleFilter
@pixi/filter-grayscale
View demo
grayscale
HslAdjustmentFilter
@pixi/filter-hsl-adjustment
View demo
hsl-adjustment
KawaseBlurFilter
@pixi/filter-kawase-blur
View demo
kawase-blur
MotionBlurFilter
@pixi/filter-motion-blur
View demo
motion-blur
MultiColorReplaceFilter
@pixi/filter-multi-color-replace
View demo
multi-color-replace
OldFilmFilter
@pixi/filter-old-film
View demo
old-film
OutlineFilter
@pixi/filter-outline
View demo
outline
PixelateFilter
@pixi/filter-pixelate
View demo
pixelate
RadialBlurFilter
@pixi/filter-radial-blur
View demo
radial-blur
ReflectionFilter
@pixi/filter-reflection
View demo
reflection
RGBSplitFilter
@pixi/filter-rgb-split
View demo
rgb split
ShockwaveFilter
@pixi/filter-shockwave
View demo
shockwave
SimpleLightmapFilter
@pixi/filter-simple-lightmap
View demo
simple-lightmap
TiltShiftFilter
@pixi/filter-tilt-shift
View demo
tilt-shift
TwistFilter
@pixi/filter-twist
View demo
twist
ZoomBlurFilter
@pixi/filter-zoom-blur
View demo
zoom-blur

Built-In Filters

PixiJS has a handful of core filters that are built-in to the PixiJS library.

Filter Preview
AlphaFilter
View demo
alpha
BlurFilter
View demo
blur
ColorMatrixFilter (contrast)
View demo
color-matrix-contrast
ColorMatrixFilter (desaturate)
View demo
color-matrix-desaturate
ColorMatrixFilter (kodachrome)
View demo
color-matrix-kodachrome
ColorMatrixFilter (lsd)
View demo
color-matrix-lsd
ColorMatrixFilter (negative)
View demo
color-matrix-negative
ColorMatrixFilter (polaroid)
View demo
color-matrix-polaroid
ColorMatrixFilter (predator)
View demo
color-matrix-predator
ColorMatrixFilter (saturate)
View demo
color-matrix-saturate
ColorMatrixFilter (sepia)
View demo
color-matrix-sepia
DisplacementFilter
View demo
displacement
NoiseFilter
View demo
noise

Installation

Installation is available using NPM:

npm install pixi-filters

Alternatively, you can use a CDN such as JSDelivr:

<script src="https://cdn.jsdelivr.net/npm/pixi-filters@latest/dist/pixi-filters.js"></script>

If all else failes, you can manually download the bundled file from the releases section and include it in your project.

Building

PixiJS Filters uses Lerna under-the-hood to build all of the filters separately. Install all dependencies by simply running the following.

npm install

Build all filters, demo and screenshots by running the following:

npm run build

Watch all filters and demo (auto-rebuild upon src changes):

npm run watch

Documentation

API documention can be found here.