Class: ConvolutionFilter

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 https://docs.gimp.org/2.10/en/gimp-filter-convolution-matrix.html for more info.
originalfilter

new ConvolutionFilter (matrix, width, height)

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

See:

Extends

  • PIXI.Filter

Members

height number

Height of the object you are transforming

matrix number[]

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

width number

Width of the object you are transforming