PIXI. ConvolutionFilter

new ConvolutionFilter(matrix, width, height)

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.

Parameters:
Name Type Description
matrix Array

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

width Number

Width of the object you are transforming

height Number

Height of the object you are transforming

Source - pixi/filters/ConvolutionFilter.js, line 1

Extends

Members

dirty :Boolean

Inherited From:
Source - pixi/filters/AbstractFilter.js, line 31

height :Number

Height of the object you are transforming

Source - pixi/filters/ConvolutionFilter.js, line 93

matrix :Array

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

Source - pixi/filters/ConvolutionFilter.js, line 63

padding :Number

Inherited From:
Source - pixi/filters/AbstractFilter.js, line 37

width :Number

Width of the object you are transforming

Source - pixi/filters/ConvolutionFilter.js, line 78

Methods

syncUniforms()

Syncs the uniforms between the class object and the shaders.

Inherited From:
Source - pixi/filters/AbstractFilter.js, line 60
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Tue Nov 25 2014 00:18:11 GMT-0000 (GMT) using the DocStrap template.