filter(filter) → {Phaser.Filter}
A WebGL shader/filter that can be applied to Sprites.
Parameters
Name | Type | Description |
---|---|---|
filter | string | The name of the filter you wish to create, for example HueRotate or SineWave. |
any | Whatever parameters are needed to be passed to the filter init function. |
Returns
The newly created Phaser.Filter object.
- Source code: gameobjects/GameObjectCreator.js (Line 407)
Please login to continue.