Class: TilingSprite

TilingSprite

new TilingSprite (bitmap)

The sprite object for a tiling image.

Name Type Description
bitmap Bitmap

The image for the tiling sprite.

Extends

  • PIXI.TilingSprite

Members

bitmap Bitmap

The image for the tiling sprite.

opacity number

The opacity of the tiling sprite (0 to 255).

origin Point

The origin point of the tiling sprite for scrolling.

Methods

destroy ()

Destroys the tiling sprite.

move (x, y, width, height)

Sets the x, y, width, and height all at once.

Name Type Description
x number

The x coordinate of the tiling sprite.

y number

The y coordinate of the tiling sprite.

width number

The width of the tiling sprite.

height number

The height of the tiling sprite.

setFrame (x, y, width, height)

Specifies the region of the image that the tiling sprite will use.

Name Type Description
x number

The x coordinate of the frame.

y number

The y coordinate of the frame.

width number

The width of the frame.

height number

The height of the frame.

update ()

Updates the tiling sprite for each frame.

updateTransform ()

Updates the transform on all children of this container for rendering.