Git Product home page Git Product logo

pixi-filters's Introduction

PixiJS Filters

Node.js CI npm version

Demo

Click here to interactively play with filters to see how they work.

Filters

All filters work with PixiJS v5.

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

Built-In Filters

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

Filter Preview
AlphaFilter alpha
BlurFilter blur
ColorMatrixFilter (contrast) color-matrix-contrast
ColorMatrixFilter (desaturate) color-matrix-desaturate
ColorMatrixFilter (kodachrome) color-matrix-kodachrome
ColorMatrixFilter (lsd) color-matrix-lsd
ColorMatrixFilter (negative) color-matrix-negative
ColorMatrixFilter (polaroid) color-matrix-polaroid
ColorMatrixFilter (predator) color-matrix-predator
ColorMatrixFilter (saturate) color-matrix-saturate
ColorMatrixFilter (sepia) color-matrix-sepia
DisplacementFilter displacement
NoiseFilter 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

Build single filter by running the following:

npm run build:prod -- --scope "@pixi/filter-emboss"

Build multiple filters where scope is a glob expression:

npm run build:prod -- --scope "{@pixi/filter-emboss,@pixi/filter-glow}"

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

npm run watch

Build all filters in dev-mode (un-minified):

npm run build:dev

Documentation

API documention can be found here.

pixi-filters's People

Contributors

bigtimebuddy avatar c8se avatar dai696 avatar dependabot[bot] avatar dev7355608 avatar dtysky avatar ewanse avatar exponenta avatar finscn avatar fuzinato avatar getkey avatar goodboydigital avatar gregmax17 avatar ivanpopelyshev avatar jasonsturges avatar jcyuan avatar jengl avatar jrod-disco avatar laino avatar liammartens avatar mudcube avatar mwni avatar nathanvogel avatar nchase avatar nikkop avatar shukantpal avatar st3v0 avatar themoonrat avatar yonom avatar zfmarkham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.