PIXI.filters.ConvolutionFilter

class ConvolutionFilter extends PIXI.Filter

The ConvolutionFilter class applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a new image. A wide variety of image effects can be achieved through convolutions, including blurring, edge detection, sharpening, embossing, and beveling. The matrix should be specified as a 9 point Array. See https://docs.gimp.org/2.10/en/gimp-filter-convolution-matrix.html for more info.
originalfilter

See:

Constructor


new PIXI.filters.ConvolutionFilter(matrix: Array<number>, width: number, height: number) → {}
Parameters:
Name Type Attributes Default Description
matrix Array<number>

<optional>

[0,0,0,0,0,0,0,0,0]

An array of values used for matrix transformation. Specified as a 9 point Array.

width number

<optional>

200

Width of the object you are transforming

height number

<optional>

200

Height of the object you are transforming

Summary


Properties from ConvolutionFilter

number
height

Height of the object you are transforming

number[]
matrix

An array of values used for matrix transformation. Specified as a 9 point Array.

number
width

Width of the object you are transforming

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


height ConvolutionFilter.ts:67
height: number

Height of the object you are transforming

matrix ConvolutionFilter.ts:40
matrix: number[]

An array of values used for matrix transformation. Specified as a 9 point Array.

width ConvolutionFilter.ts:55
width: number

Width of the object you are transforming


Powered by webdoc!