GameObjectFactory#filter()

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)
doc_phaser
2017-02-14 10:48:41
Comments
Leave a Comment

Please login to continue.