Class: ConvolutionFilter

PIXI.filters~ConvolutionFilter

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 http://docs.gimp.org/en/plug-in-convmatrix.html for more info.
originalfilter

new ConvolutionFilter (matrix, width, height)

Name Type Default Description
matrix Array.<number> [0,0,0,0,0,0,0,0,0] optional

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

width number 200 optional

Width of the object you are transforming

height number 200 optional

Height of the object you are transforming

See:

Extends

  • PIXI.Filter

Members

height number

Height of the object you are transforming

matrix Array.<number>

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

width number

Width of the object you are transforming