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/GameObjectFactory.js (Line 554)
Please login to continue.