PIXI.filters.BulgePinchFilter
class BulgePinchFilter extends PIXI.Filter
Bulges or pinches the image in a circle.


Constructor
new PIXI.filters.BulgePinchFilter(options: object) → {}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| options | object |
<optional> |
Options to use for filter. |
|
| options.center | PIXI.Point | number<Array> |
<optional> |
[0,0] |
The x and y coordinates of the center of the circle of effect. |
| options.radius | number |
<optional> |
100 |
The radius of the circle of effect. |
| options.strength | number |
<optional> |
1 |
-1 to 1 (-1 is strong pinch, 0 is no effect, 1 is strong bulge) |
Summary
Properties from BulgePinchFilter
| BulgePinchFilterOptions |
Default constructor options. |
| PIXI.Point | number<Array> |
The x and y coordinates of the center of the circle of effect. |
| number |
The radius of the circle of effect. |
| number |
The strength of the effect. -1 to 1 (-1 is strong pinch, 0 is no effect, 1 is strong bulge) |
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 |
|
Public Properties
static defaults: BulgePinchFilterOptions
Default constructor options.
center: PIXI.Point | number<Array>
The x and y coordinates of the center of the circle of effect.
strength: number
The strength of the effect. -1 to 1 (-1 is strong pinch, 0 is no effect, 1 is strong bulge)