PIXI.filters.TwistFilter

class TwistFilter extends PIXI.Filter

This filter applies a twist effect making display objects appear twisted in the given direction.
originalfilter

See:

Constructor


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

<optional>

Object object to use.

options.radius number

<optional>

200

The radius of the twist.

options.angle number

<optional>

4

The angle of the twist.

options.padding number

<optional>

20

Padding for filter area.

options.offset PIXI.Point

<optional>

Center of twist, in local, pixel coordinates.

Summary


Properties from TwistFilter

TwistFilterOptions
static defaults

Default constructor options.

number
angle

The angle of the twist.

PIXI.Point
offset

This point describes the the offset of the twist.

number
radius

The radius of the twist.

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 TwistFilter.ts:25
static defaults: TwistFilterOptions

Default constructor options.

angle TwistFilter.ts:73
angle: number

The angle of the twist.

offset TwistFilter.ts:47
offset: PIXI.Point

This point describes the the offset of the twist.

radius TwistFilter.ts:61
radius: number

The radius of the twist.


Powered by webdoc!