PIXI.filters.TwistFilter
class TwistFilter extends PIXI.Filter
This filter applies a twist effect making display objects appear twisted in the given direction.
Constructor
new PIXI.filters.TwistFilter(options: object) → {}
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 |
Default constructor options. |
number |
The angle of the twist. |
PIXI.Point |
This point describes the the offset of the twist. |
number |
The radius of the twist. |
Properties inherited from Filter
boolean |
|
PIXI.BLEND_MODES |
|
boolean |
If enabled is true the filter is applied, if false it will not. |
boolean |
|
PIXI.MSAA_QUALITY |
The samples of the filter. |
number |
|
number |
|
PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
PIXI.Program |
Program that the shader uses. |
Dict<any> |
|
Methods inherited from Filter
void |
|