#

API Docs for: 1.4.3
Show: Inherited Protected Private Deprecated

# File: src/pixi/filters/BlurFilter.js

    /**
     * @author Mat Groves http://matgroves.com/ @Doormat23
     */

    /**
     *
     * The BlurFilter applies a Gaussian blur to an object.
     * The strength of the blur can be set for x- and y-axis separately (always relative to the stage).
     *
     * @class BlurFilter
     * @contructor
     */
    PIXI.BlurFilter = function()
    {
        this.blurXFilter = new PIXI.BlurXFilter();
        this.blurYFilter = new PIXI.BlurYFilter();

        this.passes =[this.blurXFilter, this.blurYFilter];
    };

    /**
     * Sets the strength of both the blurX and blurY properties simultaneously
     *
     * @property blur
     * @type Number the strength of the blur
     * @default 2
     */
    Object.defineProperty(PIXI.BlurFilter.prototype, 'blur', {
        get: function() {
            return this.blurXFilter.blur;
        },
        set: function(value) {
            this.blurXFilter.blur = this.blurYFilter.blur = value;
        }
    });

    /**
     * Sets the strength of the blurX property
     *
     * @property blurX
     * @type Number the strength of the blurX
     * @default 2
     */
    Object.defineProperty(PIXI.BlurFilter.prototype, 'blurX', {
        get: function() {
            return this.blurXFilter.blur;
        },
        set: function(value) {
            this.blurXFilter.blur = value;
        }
    });

    /**
     * Sets the strength of the blurX property
     *
     * @property blurY
     * @type Number the strength of the blurY
     * @default 2
     */
    Object.defineProperty(PIXI.BlurFilter.prototype, 'blurY', {
        get: function() {
            return this.blurYFilter.blur;
        },
        set: function(value) {
            this.blurYFilter.blur = value;
        }
    });