Utils.getProperty()

<static> getProperty(obj, prop) → {*} Gets an objects property by string. Parameters Name Type Description obj object The object to traverse. prop string The property whose value will be returned. Returns * - the value of the property or null if property isn't found . Source code: utils/Utils.js (Line 27)

Input#deleteMoveCallback()

deleteMoveCallback(callback, context) Removes the callback from the Phaser.Input.moveCallbacks array. Parameters Name Type Description callback function The callback to be removed. context object The context in which the callback exists. Source code: input/Input.js (Line 527)

Color.getRandomColor()

<static> getRandomColor(min, max, alpha) → {number} Returns a random color value between black and whiteSet the min value to start each channel from the given offset.Set the max value to restrict the maximum color used per channel. Parameters Name Type Argument Default Description min number <optional> 0 The lowest value to use for the color. max number <optional> 255 The highest value to use for the color. alpha number <optional> 255 The alpha value o

Color.blendDarken()

<static> blendDarken(a, b) → {integer} Selects the darker of the backdrop and source colors. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1016)

Color.blendLinearLight()

<static> blendLinearLight(a, b) → {integer} This blend mode combines Linear Dodge and Linear Burn (rescaled so that neutral colors become middle gray).Dodge applies to values of top layer lighter than middle gray, and burn to darker values.The calculation simplifies to the sum of bottom layer and twice the top layer, subtract 128. The contrast decreases. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to ble

Color.blendLinearBurn()

<static> blendLinearBurn(a, b) → {integer} An alias for blendSubtract, it simply sums the values of the two colors and subtracts 255. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1244)

Polygon#clone()

clone(output) → {Phaser.Polygon} Creates a copy of the given Polygon.This is a deep clone, the resulting copy contains new Phaser.Point objects Parameters Name Type Argument Default Description output Phaser.Polygon <optional> (new Polygon) The polygon to update. If not specified a new polygon will be created. Returns Phaser.Polygon - The cloned (output) polygon object. Source code: geom/Polygon.js (Line 109)

Color.blendLinearDodge()

<static> blendLinearDodge(a, b) → {integer} An alias for blendAdd, it simply sums the values of the two colors. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1231)

Color.packPixel()

<static> packPixel(r, g, b, a) → {number} Packs the r, g, b, a components into a single integer, for use with Int32Array.If device is little endian then ABGR order is used. Otherwise RGBA order is used. Parameters Name Type Description r number The red color component, in the range 0 - 255. g number The green color component, in the range 0 - 255. b number The blue color component, in the range 0 - 255. a number The alpha color component, in the range 0 - 255. Returns numb

Physics.Ninja.Circle#projCircle_Convex()

projCircle_Convex(x, y, oH, oV, obj, t) → {number} Resolves Convex tile collision. Parameters Name Type Description x number Penetration depth on the x axis. y number Penetration depth on the y axis. oH number Grid / voronoi region. oV number Grid / voronoi region. obj Phaser.Physics.Ninja.Circle The Circle involved in the collision. t Phaser.Physics.Ninja.Tile The Tile involved in the collision. Returns number - The result of the collision. Source code: physics/ninja/Cir