repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/stepped/Stepped.js
src/math/easing/stepped/Stepped.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Stepped easing. * * @function Phaser.Math.Easing.Stepped * @since 3.0.0 * * @param {number} v - The value to be tweened. * @param {...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/sine/index.js
src/math/easing/sine/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Easing.Sine */ module.exports = { In: require('./In'), Out: require('./Out'), InOut: require('./InO...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/sine/InOut.js
src/math/easing/sine/InOut.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Sinusoidal ease-in/out. * * @function Phaser.Math.Easing.Sine.InOut * @since 3.0.0 * * @param {number} v - The value to be tweened. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/sine/In.js
src/math/easing/sine/In.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Sinusoidal ease-in. * * @function Phaser.Math.Easing.Sine.In * @since 3.0.0 * * @param {number} v - The value to be tweened. * * @...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/sine/Out.js
src/math/easing/sine/Out.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Sinusoidal ease-out. * * @function Phaser.Math.Easing.Sine.Out * @since 3.0.0 * * @param {number} v - The value to be tweened. * *...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/elastic/index.js
src/math/easing/elastic/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Easing.Elastic */ module.exports = { In: require('./In'), Out: require('./Out'), InOut: require('./...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/elastic/InOut.js
src/math/easing/elastic/InOut.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Elastic ease-in/out. * * @function Phaser.Math.Easing.Elastic.InOut * @since 3.0.0 * * @param {number} v - The value to be tweened. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/elastic/In.js
src/math/easing/elastic/In.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Elastic ease-in. * * @function Phaser.Math.Easing.Elastic.In * @since 3.0.0 * * @param {number} v - The value to be tweened. * @par...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/elastic/Out.js
src/math/easing/elastic/Out.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Elastic ease-out. * * @function Phaser.Math.Easing.Elastic.Out * @since 3.0.0 * * @param {number} v - The value to be tweened. * @p...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/quadratic/index.js
src/math/easing/quadratic/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Easing.Quadratic */ module.exports = { In: require('./In'), Out: require('./Out'), InOut: require('...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/quadratic/InOut.js
src/math/easing/quadratic/InOut.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Quadratic ease-in/out. * * @function Phaser.Math.Easing.Quadratic.InOut * @since 3.0.0 * * @param {number} v - The value to be tween...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/quadratic/In.js
src/math/easing/quadratic/In.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Quadratic ease-in. * * @function Phaser.Math.Easing.Quadratic.In * @since 3.0.0 * * @param {number} v - The value to be tweened. * ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/easing/quadratic/Out.js
src/math/easing/quadratic/Out.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Quadratic ease-out. * * @function Phaser.Math.Easing.Quadratic.Out * @since 3.0.0 * * @param {number} v - The value to be tweened. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/ShortestBetween.js
src/math/angle/ShortestBetween.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Gets the shortest angle between `angle1` and `angle2`. * * Both angles must be in the range -180 to 180, which is the same clamped * r...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/GetCounterClockwiseDistance.js
src/math/angle/GetCounterClockwiseDistance.js
/** * @author samme * @copyright 2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var NormalizeAngle = require('./Normalize'); var TAU = 2 * Math.PI; /** * Gets the shortest nonpositive angular distance from angle1 to angle2. * * @function Phaser.Math...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/Random.js
src/math/angle/Random.js
/** * @author Richard Davey <rich@phaser.io> * @author @samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var FloatBetween = require('../FloatBetween'); /** * Returns a random angle in the range [-pi, pi]. * * @function Ph...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/RandomDegrees.js
src/math/angle/RandomDegrees.js
/** * @author Richard Davey <rich@phaser.io> * @author @samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var FloatBetween = require('../FloatBetween'); /** * Returns a random angle in the range [-180, 180]. * * @function ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/index.js
src/math/angle/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Angle */ module.exports = { Between: require('./Between'), BetweenPoints: require('./BetweenPoints'), ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/Wrap.js
src/math/angle/Wrap.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var MathWrap = require('../Wrap'); /** * Wrap an angle. * * Wraps the angle to a value in the range of -PI to PI. * * @function Phaser.Mat...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/BetweenPointsY.js
src/math/angle/BetweenPointsY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y). * * The difference between this method and {@link Phaser...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/Reverse.js
src/math/angle/Reverse.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Normalize = require('./Normalize'); /** * Reverse the given angle. * * @function Phaser.Math.Angle.Reverse * @since 3.0.0 * * @param ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/WrapDegrees.js
src/math/angle/WrapDegrees.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Wrap = require('../Wrap'); /** * Wrap an angle in degrees. * * Wraps the angle to a value in the range of -180 to 180. * * @function P...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/BetweenY.js
src/math/angle/BetweenY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Find the angle of a segment from (x1, y1) -> (x2, y2). * * The difference between this method and {@link Phaser.Math.Angle.Between} is ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/RotateTo.js
src/math/angle/RotateTo.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var MATH_CONST = require('../const'); /** * Rotates `currentAngle` towards `targetAngle`, taking the shortest rotation distance. The `lerp` ar...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/CounterClockwise.js
src/math/angle/CounterClockwise.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CONST = require('../const'); /** * Takes an angle in Phasers default clockwise format and converts it so that * 0 is North, 90 is West, 1...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/Between.js
src/math/angle/Between.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Find the angle of a segment from (x1, y1) -> (x2, y2). * * @function Phaser.Math.Angle.Between * @since 3.0.0 * * @param {number} x1...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/BetweenPoints.js
src/math/angle/BetweenPoints.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y). * * Calculates the angle of the vector from the first po...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/GetShortestDistance.js
src/math/angle/GetShortestDistance.js
/** * @author samme * @copyright 2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var WrapAngle = require('./Wrap'); /** * Gets the shortest signed angular distance from angle1 to angle2. * A positive distance is a clockwise rotation. * A negative dist...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/Normalize.js
src/math/angle/Normalize.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Normalize an angle to the [0, 2pi] range. * * @function Phaser.Math.Angle.Normalize * @since 3.0.0 * * @param {number} angle - The a...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/angle/GetClockwiseDistance.js
src/math/angle/GetClockwiseDistance.js
/** * @author samme * @copyright 2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var NormalizeAngle = require('./Normalize'); /** * Gets the shortest nonnegative angular distance from angle1 to angle2. * * @function Phaser.Math.Angle.GetClockwiseDista...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/random-data-generator/RandomDataGenerator.js
src/math/random-data-generator/RandomDataGenerator.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); /** * @classdesc * A seeded Random Data Generator. * * Access via `Phaser.Math.RND` which is an i...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/snap/index.js
src/math/snap/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Snap */ module.exports = { Ceil: require('./SnapCeil'), Floor: require('./SnapFloor'), To: require(...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/snap/SnapCeil.js
src/math/snap/SnapCeil.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Snap a value to nearest grid slice, using ceil. * * Example: if you have an interval gap of `5` and a position of `12`... you will snap...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/snap/SnapTo.js
src/math/snap/SnapTo.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Snap a value to nearest grid slice, using rounding. * * Example: if you have an interval gap of `5` and a position of `12`... you will ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/snap/SnapFloor.js
src/math/snap/SnapFloor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Snap a value to nearest grid slice, using floor. * * Example: if you have an interval gap of `5` and a position of `12`... you will sna...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/pow2/IsValuePowerOfTwo.js
src/math/pow2/IsValuePowerOfTwo.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Tests the value and returns `true` if it is a power of two. * * @function Phaser.Math.Pow2.IsValue * @since 3.0.0 * * @param {number...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/pow2/index.js
src/math/pow2/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Pow2 */ module.exports = { GetNext: require('./GetPowerOfTwo'), IsSize: require('./IsSizePowerOfTwo'), ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/pow2/GetPowerOfTwo.js
src/math/pow2/GetPowerOfTwo.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the nearest power of 2 to the given `value`. * * @function Phaser.Math.Pow2.GetNext * @since 3.0.0 * * @param {number} value...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/pow2/IsSizePowerOfTwo.js
src/math/pow2/IsSizePowerOfTwo.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks if the given `width` and `height` are a power of two. * Useful for checking texture dimensions. * * @function Phaser.Math.Pow2....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/GreaterThan.js
src/math/fuzzy/GreaterThan.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Check whether `a` is fuzzily greater than `b`. * * `a` is fuzzily greater than `b` if it is more than `b - epsilon`. * * @function Ph...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/Floor.js
src/math/fuzzy/Floor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculate the fuzzy floor of the given value. * * @function Phaser.Math.Fuzzy.Floor * @since 3.0.0 * * @param {number} value - The v...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/index.js
src/math/fuzzy/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Fuzzy */ module.exports = { Ceil: require('./Ceil'), Equal: require('./Equal'), Floor: require('./F...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/Ceil.js
src/math/fuzzy/Ceil.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculate the fuzzy ceiling of the given value. * * @function Phaser.Math.Fuzzy.Ceil * @since 3.0.0 * * @param {number} value - The ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/Equal.js
src/math/fuzzy/Equal.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Check whether the given values are fuzzily equal. * * Two numbers are fuzzily equal if their difference is less than `epsilon`. * * @...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/fuzzy/LessThan.js
src/math/fuzzy/LessThan.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Check whether `a` is fuzzily less than `b`. * * `a` is fuzzily less than `b` if it is less than `b + epsilon`. * * @function Phaser.M...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/LinearInterpolation.js
src/math/interpolation/LinearInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Linear = require('../Linear'); /** * A linear interpolation method. * * @function Phaser.Math.Interpolation.Linear * @since 3.0.0 * @s...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/index.js
src/math/interpolation/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Math.Interpolation */ module.exports = { Bezier: require('./BezierInterpolation'), CatmullRom: require('./Ca...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/SmoothStepInterpolation.js
src/math/interpolation/SmoothStepInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var SmoothStep = require('../SmoothStep'); /** * A Smooth Step interpolation method. * * @function Phaser.Math.Interpolation.SmoothStep * @...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/CatmullRomInterpolation.js
src/math/interpolation/CatmullRomInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CatmullRom = require('../CatmullRom'); /** * A Catmull-Rom interpolation method. * * @function Phaser.Math.Interpolation.CatmullRom * @...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/SmootherStepInterpolation.js
src/math/interpolation/SmootherStepInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var SmootherStep = require('../SmootherStep'); /** * A Smoother Step interpolation method. * * @function Phaser.Math.Interpolation.SmootherS...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/CubicBezierInterpolation.js
src/math/interpolation/CubicBezierInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @ignore */ function P0 (t, p) { var k = 1 - t; return k * k * k * p; } /** * @ignore */ function P1 (t, p) { var k = 1 -...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/BezierInterpolation.js
src/math/interpolation/BezierInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Bernstein = require('../Bernstein'); /** * A bezier interpolation method. * * @function Phaser.Math.Interpolation.Bezier * @since 3.0.0...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/interpolation/QuadraticBezierInterpolation.js
src/math/interpolation/QuadraticBezierInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @ignore */ function P0 (t, p) { var k = 1 - t; return k * k * p; } /** * @ignore */ function P1 (t, p) { return 2 * (1 -...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/RectangleLike.js
src/math/typedefs/RectangleLike.js
/** * @typedef {object} Phaser.Types.Math.RectangleLike * @since 3.80.0 * * @property {number} x - The x component. * @property {number} y - The y component. * @property {number} width - The width component. * @property {number} height - The height component. */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/Vector2Like.js
src/math/typedefs/Vector2Like.js
/** * @typedef {object} Phaser.Types.Math.Vector2Like * @since 3.0.0 * * @property {number} x - The x component. * @property {number} y - The y component. */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/index.js
src/math/typedefs/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Types.Math */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/Vector3Like.js
src/math/typedefs/Vector3Like.js
/** * @typedef {object} Phaser.Types.Math.Vector3Like * @since 3.50.0 * * @property {number} [x] - The x component. * @property {number} [y] - The y component. * @property {number} [z] - The z component. */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/SinCosTable.js
src/math/typedefs/SinCosTable.js
/** * @typedef {object} Phaser.Types.Math.SinCosTable * @since 3.0.0 * * @property {number} sin - The sine value. * @property {number} cos - The cosine value. * @property {number} length - The length. */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/math/typedefs/Vector4Like.js
src/math/typedefs/Vector4Like.js
/** * @typedef {object} Phaser.Types.Math.Vector4Like * @since 3.50.0 * * @property {number} [x] - The x component. * @property {number} [y] - The y component. * @property {number} [z] - The z component. * @property {number} [w] - The w component. */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/index.js
src/display/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Display */ module.exports = { Align: require('./align'), BaseShader: require('./shader/BaseShader'), Bou...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/ColorMatrix.js
src/display/ColorMatrix.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../utils/Class'); var tempMatrix = new Float32Array(20); /** * @classdesc * The ColorMatrix class creates a 5x4 matrix ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/RGB.js
src/display/RGB.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../utils/Class'); var NOOP = require('../utils/NOOP'); /** * @classdesc * The RGB class holds a single color value and a...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/shader/BaseShader.js
src/display/shader/BaseShader.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); /** * @classdesc * A BaseShader is a small resource class that contains the data required for a Web...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/mask/index.js
src/display/mask/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Display.Masks */ module.exports = { BitmapMask: require('./BitmapMask'), GeometryMask: require('./GeometryMa...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/mask/GeometryMask.js
src/display/mask/GeometryMask.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); /** * @classdesc * A Geometry Mask can be applied to a Game Object to hide any pixels of it which d...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/mask/BitmapMask.js
src/display/mask/BitmapMask.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../../utils/Class'); var GameObjectFactory = require('../../gameobjects/GameObjectFactory'); /** * @classdesc * A Bitmap...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/CanvasPool.js
src/display/canvas/CanvasPool.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CONST = require('../../const'); var Smoothing = require('./Smoothing'); // The pool into which the canvas elements are placed. var pool = [...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/index.js
src/display/canvas/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Display.Canvas */ module.exports = { CanvasInterpolation: require('./CanvasInterpolation'), CanvasPool: requ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/CanvasInterpolation.js
src/display/canvas/CanvasInterpolation.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Display.Canvas.CanvasInterpolation * @since 3.0.0 */ var CanvasInterpolation = { /** * Sets the CSS image-r...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/Smoothing.js
src/display/canvas/Smoothing.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ // Browser specific prefix, so not going to change between contexts, only between browsers var prefix = ''; /** * @namespace Phaser.Display.C...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/TouchAction.js
src/display/canvas/TouchAction.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions. * * @function Phaser.Display....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/canvas/UserSelect.js
src/display/canvas/UserSelect.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Sets the user-select property on the canvas style. Can be used to disable default browser selection actions. * * @function Phaser.Displ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetCenterY.js
src/display/bounds/SetCenterY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the center top of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.Se...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetCenterY.js
src/display/bounds/GetCenterY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the center y coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetCenterY * @since 3.0.0 * ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetBottom.js
src/display/bounds/GetBottom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the bottom coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetBottom * @since 3.0.0 * * @...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetRight.js
src/display/bounds/GetRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the right coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetRight * @since 3.0.0 * * @pa...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetCenterX.js
src/display/bounds/SetCenterX.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the center top of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.Se...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/index.js
src/display/bounds/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Display.Bounds */ module.exports = { CenterOn: require('./CenterOn'), GetBottom: require('./GetBottom'), ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetOffsetY.js
src/display/bounds/GetOffsetY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the amount the Game Object is visually offset from its y coordinate. * This is the same as `width * origin.y`. * This value wil...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetLeft.js
src/display/bounds/SetLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the left of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.SetLeft ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetBottom.js
src/display/bounds/SetBottom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the bottom of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.SetBot...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetOffsetX.js
src/display/bounds/GetOffsetX.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the amount the Game Object is visually offset from its x coordinate. * This is the same as `width * origin.x`. * This value wil...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetTop.js
src/display/bounds/GetTop.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the top coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetTop * @since 3.0.0 * * @param ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetCenterX.js
src/display/bounds/GetCenterX.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the center x coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetCenterX * @since 3.0.0 * ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetBounds.js
src/display/bounds/GetBounds.js
/** * @author samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('./GetBottom'); var GetLeft = require('./GetLeft'); var GetRight = require('./GetRight'); var GetTop = require('./GetTop'); var Rectangle = requi...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetRight.js
src/display/bounds/SetRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the left of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.SetRight...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/CenterOn.js
src/display/bounds/CenterOn.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var SetCenterX = require('./SetCenterX'); var SetCenterY = require('./SetCenterY'); /** * Positions the Game Object so that it is centered on ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/SetTop.js
src/display/bounds/SetTop.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Positions the Game Object so that the top of its bounds aligns with the given coordinate. * * @function Phaser.Display.Bounds.SetTop *...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/bounds/GetLeft.js
src/display/bounds/GetLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the left coordinate from the bounds of the Game Object. * * @function Phaser.Display.Bounds.GetLeft * @since 3.0.0 * * @para...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/ComponentToHex.js
src/display/color/ComponentToHex.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns a string containing a hex representation of the given color component. * * @function Phaser.Display.Color.ComponentToHex * @si...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/RGBToString.js
src/display/color/RGBToString.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var ComponentToHex = require('./ComponentToHex'); /** * Converts the color values into an HTML compatible color string, prefixed with either `...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/ObjectToColor.js
src/display/color/ObjectToColor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Color = require('./Color'); /** * Converts an object containing `r`, `g`, `b` and `a` properties into a Color class instance. * * @funct...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/HexStringToColor.js
src/display/color/HexStringToColor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Color = require('./Color'); /** * Converts a hex string into a Phaser Color object. * * The hex string can supplied as `'#0033ff'` or t...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/index.js
src/display/color/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Color = require('./Color'); Color.ColorSpectrum = require('./ColorSpectrum'); Color.ColorToRGBA = require('./ColorToRGBA'); Color.Component...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/ValueToColor.js
src/display/color/ValueToColor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var HexStringToColor = require('./HexStringToColor'); var IntegerToColor = require('./IntegerToColor'); var ObjectToColor = require('./ObjectToC...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/ColorToRGBA.js
src/display/color/ColorToRGBA.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Converts the given color value into an Object containing r,g,b and a properties. * * @function Phaser.Display.Color.ColorToRGBA * @sin...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/IntegerToRGB.js
src/display/color/IntegerToRGB.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Return the component parts of a color as an Object with the properties alpha, red, green, blue. * * Alpha will only be set if it exists...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/GetColor32.js
src/display/color/GetColor32.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Given an alpha and 3 color values this will return an integer representation of it. * * @function Phaser.Display.Color.GetColor32 * @s...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/HSVColorWheel.js
src/display/color/HSVColorWheel.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var HSVToRGB = require('./HSVToRGB'); /** * Generates an HSV color wheel which is an array of 360 Color objects, for each step of the wheel. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/IntegerToColor.js
src/display/color/IntegerToColor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Color = require('./Color'); var IntegerToRGB = require('./IntegerToRGB'); /** * Converts the given color value into an instance of a Color...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false