API Docs for: 0.9
Show:

DisplayObject Class

Module: PIXI

this is the base class for all objects that are rendered on the screen.

Constructor

DisplayObject

()

Item Index

Methods

Methods

autoDetectRenderer

(
  • width
  • height
)
static

This helper function will automatically detect which renderer you should be using. WebGL is the preferred renderer as it is a lot fastest. If webGL is not supported by the browser then this function will return a canvas renderer

Parameters:

  • width Number

    the width of the renderers view

  • height Number

    the height of the renderers view

Properties

alpha

Number

The opacity of the object.

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.