pnf

pixi-noise-filter

A noise filter for pixi.js

Showing:

Popularity

Downloads/wk

4

GitHub Stars

5

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

41.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

pixi-noise-filter

A noise filter for pixi.js.

install with npm

npm install --save pixi.js
npm install --save pixi-noise-filter

use with Browserify

var PIXI = require('pixi.js');
var NoiseFilter = require('pixi-noise-filter');

var renderer = PIXI.autoDetectRenderer();
document.body.appendChild(renderer.view);
var stage = new PIXI.Stage();

var filter = new NoiseFilter();
filter.noiseLevelRGBA = [0.05, 0.05, 0.05, 0];
stage.filters = [filter];
renderer.render(stage);

properties

noiseLevelRGBA = [R, G, B, A]

How much noise to apply. Array of RGBA floats with values between 0 (no noise) and 1 (maximum noise). Defaults are [0.05, 0.05, 0.05, 0].

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100