How to use the @pixi/filter-alpha.AlphaFilter function in @pixi/filter-alpha

To help you get started, we’ve selected a few @pixi/filter-alpha examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi-filters / filters / bloom / src / BloomFilter.js View on Github external
blurX = blur;
            blurY = blur;
        }
        else if (blur instanceof Point) {
            blurX = blur.x;
            blurY = blur.y;
        }
        else if (Array.isArray(blur)) {
            blurX = blur[0];
            blurY = blur[1];
        }

        this.blurXFilter = new BlurFilterPass(true, blurX, quality, resolution, kernelSize);
        this.blurYFilter = new BlurFilterPass(false, blurY, quality, resolution, kernelSize);
        this.blurYFilter.blendMode = BLEND_MODES.SCREEN;
        this.defaultFilter = new AlphaFilter();
    }

@pixi/filter-alpha

Filter that applies alpha evenly across the entire display object and any opaque elements it contains

MIT
Latest version published 8 months ago

Package Health Score

91 / 100
Full package analysis

Popular @pixi/filter-alpha functions

Similar packages