Texture#Texture

new Texture(baseTexture, frame, crop, trim) A texture stores the information that represents an image or part of an image. It cannot be addedto the display list directly. Instead use it as the texture for a PIXI.Sprite. If no frame is provided then the whole image is used. Parameters Name Type Argument Description baseTexture PIXI.BaseTexture The base texture source to create the texture from frame Rectangle The rectangle frame of the texture to show crop Rectangle <optional>

Texture#trim

trim :Rectangle The texture trim data. Source code: pixi/textures/Texture.js (Line 63)

Texture#valid

valid : boolean This will let the renderer know if the texture is valid. If it's not then it cannot be rendered. Source code: pixi/textures/Texture.js (Line 71)

Texture#width

width : number The width of the Texture in pixels. Source code: pixi/textures/Texture.js (Line 112)

Texture.fromCanvas()

<static> fromCanvas(canvas, scaleMode) → {PIXI.Texture} Helper function that creates a new a Texture based on the given canvas element. Parameters Name Type Description canvas Canvas The canvas element source of the texture scaleMode Number See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values Returns PIXI.Texture - Source code: pixi/textures/Texture.js (Line 249)

Tile#alpha

alpha : number The alpha value at which this tile is drawn to the canvas. Source code: tilemap/Tile.js (Line 84)

Tile#bottom

[readonly] bottom : number The sum of the y and height properties. Source code: tilemap/Tile.js (Line 396)

Tile#canCollide

[readonly] canCollide : boolean True if this tile can collide on any of its faces or has a collision callback set. Source code: tilemap/Tile.js (Line 344)

Tile#centerX

centerX Properties: Name Type Description width number The width of the tile in pixels. Source code: tilemap/Tile.js (Line 74)

Tile#centerY

centerY Properties: Name Type Description height number The height of the tile in pixels. Source code: tilemap/Tile.js (Line 79)