PIXI.filters.NoiseFilter

class NoiseFilter extends PIXI.Filter

A Noise effect filter.

original filter: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js

Constructor


new PIXI.filters.NoiseFilter(noise: number, seed: number) → {}
Parameters:
Name Type Attributes Default Description
noise number

<optional>

0.5

The noise intensity, should be a normalized value in the range [0, 1].

seed number

<optional>

A random seed for the noise generation. Default is Math.random().

Summary


Properties from NoiseFilter

number
noise = 0.5
number
seed

A seed value to apply to the random noise generation. Math.random() is a good value to use.

Properties inherited from Filter

boolean
autoFit = true
PIXI.BLEND_MODES
blendMode = PIXI.BLEND_MODES.NORMAL
boolean
enabled

If enabled is true the filter is applied, if false it will not.

boolean
legacy
PIXI.MSAA_QUALITY
multisample

The samples of the filter.

number
padding
number
resolution
PIXI.State
state

The WebGL state the filter requires to render.

Properties inherited from Shader

PIXI.Program
program

Program that the shader uses.

Dict<any>
uniforms

Methods inherited from Filter

void
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES, _currentState: object)

Public Properties


noise NoiseFilter.ts:28
noise: number = 0.5

The amount of noise to apply, this value should be in the range (0, 1].

seed NoiseFilter.ts:42
seed: number

A seed value to apply to the random noise generation. Math.random() is a good value to use.


Powered by webdoc!