Text#tintedTexture

tintedTexture :Canvas A canvas that contains the tinted version of the Sprite (in Canvas mode, WebGL doesn't populate this) Inherited From PIXI.Sprite#tintedTexture Default Value null Source code: pixi/display/Sprite.js (Line 73)

Text#tint

tint : number The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect. Inherited From PIXI.Sprite#tint Default Value 0xFFFFFF Source code: pixi/display/Sprite.js (Line 54)

Text#texture

texture : PIXI.Texture The texture that the sprite is using Inherited From PIXI.Sprite#texture Source code: pixi/display/Sprite.js (Line 28)

Text#textBounds

[readonly] textBounds : Phaser.Rectangle The textBounds property allows you to specify a rectangular region upon which text alignment is based.See Text.setTextBounds for more details. Source code: gameobjects/Text.js (Line 81)

Text#Text

new Text(game, x, y, text, style) Create a new game object for displaying Text. This uses a local hidden Canvas object and renders the type into it. It then makes a texture from this for rendering to the view.Because of this you can only display fonts that are currently loaded and available to the browser: fonts must be pre-loaded. See this compatibility table for the available default fonts across mobile browsers. Parameters Name Type Argument Description game Phaser.Game Current game i

Text#tabs

tabs : integer | array The size (in pixels) of the tabs, for when text includes tab characters. 0 disables.Can be an integer or an array of varying tab sizes, one tab per element.For example if you set tabs to 100 then when Text encounters a tab it will jump ahead 100 pixels.If you set tabs to be [100,200] then it will set the first tab at 100px and the second at 200px. Type integer | array Source code: gameobjects/Text.js (Line 1919)

Text#swapChildren()

swapChildren(child, child2) Swaps the position of 2 Display Objects within this container. Parameters Name Type Description child DisplayObject - child2 DisplayObject - Inherited From PIXI.DisplayObjectContainer#swapChildren Source code: pixi/display/DisplayObjectContainer.js (Line 85)

Text#strokeThickness

strokeThickness : number A number that represents the thickness of the stroke. Default is 0 (no stroke) Source code: gameobjects/Text.js (Line 2014)

Text#strokeColors

strokeColors :array An array of the stroke color values as specified by addStrokeColor. Source code: gameobjects/Text.js (Line 101)

Text#stroke

stroke : string A canvas fillstyle that will be used on the text stroke eg 'blue', '#FCFF00'. Source code: gameobjects/Text.js (Line 1992)