PIXI. PIXI

new PIXI()

Namespace-class for pixi.js.

Contains assorted static properties and enumerations.

Source - pixi/Pixi.js, line 11

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 28

<static> defaultRenderOptions :Object

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

Source - pixi/Pixi.js, line 89

<static> DEG_TO_RAD :Number

Source - pixi/Pixi.js, line 76

<static> PI_2 :Number

Source - pixi/Pixi.js, line 64

<static> RAD_TO_DEG :Number

Source - pixi/Pixi.js, line 70

<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 82

<static> VERSION :String

Version of pixi that is loaded.

Source - pixi/Pixi.js, line 35

<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 21

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 57

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 77

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-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-alpha10 on Mon Mar 23 2015 23:44:13 GMT+0000 (GMT Standard Time) using the DocStrap template.