PIXI. PIXI

new PIXI()

Namespace-class for pixi.js.

Contains assorted static properties and enumerations.

Source - pixi/Pixi.js, line 11

Classes

DisplayObject

Members

<internal, static> CANVAS_RENDERER :Number

Internal:
  • This member is internal (protected) and may be modified or removed in the future.
Source - pixi/Pixi.js, line 35

<static> defaultRenderOptions :Object

The default render options if none are supplied to
{{#crossLink "WebGLRenderer"}}{{/crossLink}} or {{#crossLink "CanvasRenderer"}}{{/crossLink}}.

Source - pixi/Pixi.js, line 96

<static> DEG_TO_RAD :Number

Source - pixi/Pixi.js, line 83

<static> game :PhaserGame

A reference to the Phaser Game instance that owns this Pixi renderer.

Source - pixi/Pixi.js, line 21

<static> PI_2 :Number

Source - pixi/Pixi.js, line 71

<static> RAD_TO_DEG :Number

Source - pixi/Pixi.js, line 77

<internal, static> RETINA_PREFIX :String

Internal:
  • This member is internal (protected) and may be modified or removed in the future.
Source - pixi/Pixi.js, line 89

<static> VERSION :String

Version of pixi that is loaded.

Source - pixi/Pixi.js, line 42

<internal, static> WEBGL_RENDERER :Number

Internal:
  • This member is internal (protected) and may be modified or removed in the future.
Source - pixi/Pixi.js, line 28

Methods

canUseNewCanvasBlendModes() → {Boolean}

Checks whether the Canvas BlendModes are supported by the current browser for drawImage

Returns:
Boolean -

whether they are supported

Source - pixi/utils/Utils.js, line 25

getNextPowerOfTwo(number) → {Number}

Given a number, this function returns the closest number that is a power of two
this function is taken from Starling Framework as its pretty neat ;)

Parameters:
Name Type Description
number Number

-

Returns:
Number -

the closest number that is a power of two

Source - pixi/utils/Utils.js, line 63

hex2rgb(hex)

Converts a hex color number to an [R, G, B] array

Parameters:
Name Type Description
hex Number

-

Source - pixi/utils/Utils.js, line 5

isPowerOfTwo(width, height) → {Boolean}

checks if the given width and height make a power of two texture

Parameters:
Name Type Description
width Number

-

height Number

-

Returns:
Boolean -
Source - pixi/utils/Utils.js, line 83

rgb2hex(rgb)

Converts a color as an [R, G, B] array to a hex number

Parameters:
Name Type Description
rgb Array

-

Source - pixi/utils/Utils.js, line 15
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:20 GMT+0100 (BST) using the DocStrap template.