Text#addColor()

addColor(color, position) → {Phaser.Text} Set specific colors for certain characters within the Text. It works by taking a color value, which is a typical HTML string such as #ff0000 or rgb(255,0,0) and a position.The position value is the index of the character in the Text string to start applying this color to.Once set the color remains in use until either another color or the end of the string is encountered.For example if the Text was Photon Storm and you did Text.addColor('#ffff00', 6) i

Text#addChildAt()

addChildAt(child, index) → {DisplayObject} Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown Parameters Name Type Description child DisplayObject The child to add index Number The index to place the child in Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 55)

Text#addChild()

addChild(child) → {DisplayObject} Adds a child to the container. Parameters Name Type Description child DisplayObject The DisplayObject to add to the container Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChild Source code: pixi/display/DisplayObjectContainer.js (Line 42)

Strip#width

width : number The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set Inherited From PIXI.DisplayObjectContainer#width Source code: pixi/display/DisplayObjectContainer.js (Line 571)

Strip#texture

texture : PIXI.Texture The texture of the strip Source code: pixi/extras/Strip.js (Line 20)

Strip#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)

Strip#Strip

new Strip(texture, width, height) Parameters Name Type Description texture PIXI.Texture The texture to use width Number the width height Number the height Source code: pixi/extras/Strip.js (Line 5)

Strip#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Inherited From PIXI.DisplayObjectContainer#setChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 132)

Strip#removeChildren()

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes. Parameters Name Type Description beginIndex Number The beginning position. Default value is 0. endIndex Number The ending position. Default value is size of the container. Inherited From PIXI.DisplayObjectContainer#removeChildren Source code: pixi/display/DisplayObjectContainer.js (Line 213)

Strip#removeChildAt()

removeChildAt(index) → {DisplayObject} Removes a child from the specified index position. Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 191)