PIXI.filters.ZoomBlurFilter

class ZoomBlurFilter extends PIXI.Filter

The ZoomFilter applies a Zoom blur to an object.
originalfilter

See:

Constructor


new PIXI.filters.ZoomBlurFilter(options: object) → {}
Parameters:
Name Type Attributes Default Description
options object

<optional>

Filter options to use.

options.strength number

<optional>

0.1

Sets the strength of the zoom blur effect

options.center PIXI.Point | number<Array>

<optional>

[0,0]

The center of the zoom.

options.innerRadius number

<optional>

0

The inner radius of zoom. The part in inner circle won't apply zoom blur effect.

options.radius number

<optional>

-1

See radius property.

options.maxKernelSize number

<optional>

32

On older iOS devices, it's better to not go above 13.0. Decreasing this value will produce a lower-quality blur effect with more dithering.

Summary


Properties from ZoomBlurFilter

ZoomBlurFilterOptions
static defaults

Default constructor options.

PIXI.Point | number<Array>
center = [0, 0]

Center of the effect.

number
innerRadius = 0
number
radius = -1
number
strength = 0.1

Properties inherited from Filter

boolean
autoFit = true
PIXI.BLEND_MODES
blendMode = PIXI.BLEND_MODES.NORMAL
boolean
enabled

If enabled is true the filter is applied, if false it will not.

boolean
legacy
PIXI.MSAA_QUALITY
multisample

The samples of the filter.

number
padding
number
resolution
PIXI.State
state

The WebGL state the filter requires to render.

Properties inherited from Shader

PIXI.Program
program

Program that the shader uses.

Dict<any>
uniforms

Methods inherited from Filter

void
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES, _currentState: object)

Public Properties


defaults ZoomBlurFilter.ts:28
static defaults: ZoomBlurFilterOptions

Default constructor options.

center ZoomBlurFilter.ts:56
center: PIXI.Point | number<Array> = [0, 0]

Center of the effect.

innerRadius ZoomBlurFilter.ts:84
innerRadius: number = 0

Radius of the inner region not effected by blur.

radius ZoomBlurFilter.ts:97
radius: number = -1

Outer radius of the effect. The default value is -1. < 0.0 means it's infinity.

strength ZoomBlurFilter.ts:71
strength: number = 0.1

Intensity of the zoom effect.


Powered by webdoc!