API Docs for: 1.2.1
Show:

Stage Class

Defined in: pixi/Stage.js:5
Module: PIXI

A Stage represents the root of the display tree. Everything connected to the stage is rendered

Constructor

Stage

()

Defined in pixi/Stage.js:5

Methods

__addChild

()

Defined in pixi/Stage.js:44

__removeChild

()

Defined in pixi/Stage.js:63

addChild

(
  • DisplayObject
)

Adds a child to the container.

Parameters:

addChildAt

(
  • DisplayObject
  • index
)

Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown

Parameters:

removeChild

(
  • DisplayObject
)

Removes a child from the container.

Parameters:

updateTransform

()

Defined in pixi/Stage.js:26

Properties

alpha

Number

The opacity of the object.

children

Array

[read-only] The of children of this container.

parent

DisplayObjectContainer

[read-only] The display object container that contains this display object.

position

Point

The coordinate of the object relative to the local coordinates of the parent.

rotation

Number

The rotation of the object in radians.

scale

Point

The scale factor of the object.

stage

Stage

[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.

visible

Boolean

The visibility of the object.