Filter#game

game : Phaser.Game A reference to the currently running game. Source code: core/Filter.js (Line 24)

Filter#fragmentSrc

fragmentSrc :array | string The fragment shader code. Type array | string Source code: core/Filter.js (Line 98)

Filter#Filter

new Filter(game, uniforms, fragmentSrc) This is a base Filter class to use for any Phaser filter development. The vast majority of filters (including all of those that ship with Phaser) use fragment shaders, andtherefore only work in WebGL and are not supported by Canvas at all. Parameters Name Type Description game Phaser.Game A reference to the currently running game. uniforms object Uniform mappings object fragmentSrc Array | string The fragment shader code. Either an array, one ele

Filter#dirty

dirty : boolean Internal PIXI var. Default Value true Source code: core/Filter.js (Line 50)

Filter#destroy()

destroy() Clear down this Filter and null out references Source code: core/Filter.js (Line 203)

Filter#addToWorld()

addToWorld(x, y, width, height, anchorX, anchorY) → {Phaser.Image} Creates a new Phaser.Image object using a blank texture and assignsthis Filter to it. The image is then added to the world. If you don't provide width and height values then Filter.width and Filter.height are used. If you do provide width and height values then this filter will be resized to match thosevalues. Parameters Name Type Argument Default Description x number <optional> 0 The x coordinate to place the Imag

Events#parent

parent : Phaser.Sprite The Sprite that owns these events. Source code: gameobjects/components/Events.js (Line 35)

Events#onRevived

onRevived : Phaser.Signal This signal is dispatched when the Game Object is revived from a previously killed state.This happens when Sprite.revive() is called.It is sent one argument:{any} The Game Object that was revived. Source code: gameobjects/components/Events.js (Line 128)

Events#onRemovedFromWorld

onRemovedFromWorld : Phaser.Signal This method is deprecated and should not be used. It may be removed in the future. This Signal is never used internally by Phaser and is now deprecated. Deprecated: Yes Source code: gameobjects/components/Events.js (Line 100)

Events#onRemovedFromGroup

onRemovedFromGroup : Phaser.Signal This signal is dispatched when the Game Object is removed from a Group.It is sent two arguments:{any} The Game Object that was removed from the Group.{Phaser.Group} The Group it was removed from. Source code: gameobjects/components/Events.js (Line 93)