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/display/color/HueToComponent.js
src/display/color/HueToComponent.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Converts a hue to an RGB color. * Based on code by Michael Jackson (https://github.com/mjijackson) * * @function Phaser.Display.Color....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/ColorSpectrum.js
src/display/color/ColorSpectrum.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetColor = require('./GetColor'); /** * Return an array of Colors in a Color Spectrum. * * The spectrum colors flow in the order: red, y...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/Interpolate.js
src/display/color/Interpolate.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('../../math/Linear'); var GetColor = require('./GetColor'); /** * @namespace Phaser.Display.Color.Interpolate * @membero...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/GetColor.js
src/display/color/GetColor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Given 3 separate color values this will return an integer representation of it. * * @function Phaser.Display.Color.GetColor * @since 3...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/RGBStringToColor.js
src/display/color/RGBStringToColor.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 CSS 'web' string into a Phaser Color object. * * The web string can be in the format `'rgb...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/Color.js
src/display/color/Color.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 GetColor = require('./GetColor'); var GetColor32 = require('./GetColor32'); var HSVToRGB = require...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/HSVToRGB.js
src/display/color/HSVToRGB.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetColor = require('./GetColor'); /** * RGB space conversion. * * @ignore * * @param {number} n - The value to convert. * @param {num...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/HSLToColor.js
src/display/color/HSLToColor.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 HueToComponent = require('./HueToComponent'); /** * Converts HSL (hue, saturation and lightness) values to...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/RGBToHSV.js
src/display/color/RGBToHSV.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Converts an RGB color value to HSV (hue, saturation and value). * Conversion formula from http://en.wikipedia.org/wiki/HSL_color_space. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/color/RandomRGB.js
src/display/color/RandomRGB.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Between = require('../../math/Between'); var Color = require('./Color'); /** * Creates a new Color object where the r, g, and b values hav...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/index.js
src/display/align/index.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 Extend = require('../../utils/object/Extend'); /** * @namespace Phaser.Display.Align */ var Align = { ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/const.js
src/display/align/const.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var ALIGN_CONST = { /** * A constant representing a top-left alignment or position. * @constant * @name Phaser.Display.Align.TO...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/BottomRight.js
src/display/align/to/BottomRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetRight = require('../../bounds/GetRight'); var SetRight = require('../../bounds/SetRigh...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/LeftCenter.js
src/display/align/to/LeftCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterY = require('../../bounds/GetCenterY'); var GetLeft = require('../../bounds/GetLeft'); var SetCenterY = require('../../bounds/SetCe...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/QuickSet.js
src/display/align/to/QuickSet.js
/** * @author samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var ALIGN_CONST = require('../const'); var AlignToMap = []; AlignToMap[ALIGN_CONST.BOTTOM_CENTER] = require('./BottomCenter'); AlignToMap[ALIGN_CONST.BOTTOM_LEFT] = re...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/index.js
src/display/align/to/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.Align.To */ module.exports = { BottomCenter: require('./BottomCenter'), BottomLeft: require('./Botto...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/RightBottom.js
src/display/align/to/RightBottom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetRight = require('../../bounds/GetRight'); var SetBottom = require('../../bounds/SetBot...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/LeftTop.js
src/display/align/to/LeftTop.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetLeft = require('../../bounds/GetLeft'); var GetTop = require('../../bounds/GetTop'); var SetRight = require('../../bounds/SetRight'); var...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/TopRight.js
src/display/align/to/TopRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetRight = require('../../bounds/GetRight'); var GetTop = require('../../bounds/GetTop'); var SetBottom = require('../../bounds/SetBottom');...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/RightCenter.js
src/display/align/to/RightCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterY = require('../../bounds/GetCenterY'); var GetRight = require('../../bounds/GetRight'); var SetCenterY = require('../../bounds/Set...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/BottomLeft.js
src/display/align/to/BottomLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetLeft = require('../../bounds/GetLeft'); var SetLeft = require('../../bounds/SetLeft');...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/BottomCenter.js
src/display/align/to/BottomCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetCenterX = require('../../bounds/GetCenterX'); var SetCenterX = require('../../bounds/S...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/LeftBottom.js
src/display/align/to/LeftBottom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetLeft = require('../../bounds/GetLeft'); var SetBottom = require('../../bounds/SetBotto...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/RightTop.js
src/display/align/to/RightTop.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetRight = require('../../bounds/GetRight'); var GetTop = require('../../bounds/GetTop'); var SetLeft = require('../../bounds/SetLeft'); var...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/TopLeft.js
src/display/align/to/TopLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetLeft = require('../../bounds/GetLeft'); var GetTop = require('../../bounds/GetTop'); var SetBottom = require('../../bounds/SetBottom'); v...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/to/TopCenter.js
src/display/align/to/TopCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterX = require('../../bounds/GetCenterX'); var GetTop = require('../../bounds/GetTop'); var SetBottom = require('../../bounds/SetBotto...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/BottomRight.js
src/display/align/in/BottomRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetRight = require('../../bounds/GetRight'); var SetBottom = require('../../bounds/SetBot...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/LeftCenter.js
src/display/align/in/LeftCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterY = require('../../bounds/GetCenterY'); var GetLeft = require('../../bounds/GetLeft'); var SetCenterY = require('../../bounds/SetCe...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/QuickSet.js
src/display/align/in/QuickSet.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var ALIGN_CONST = require('../const'); var AlignInMap = []; AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = require('./BottomCenter'); AlignInMap[ALIG...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/index.js
src/display/align/in/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.Align.In */ module.exports = { BottomCenter: require('./BottomCenter'), BottomLeft: require('./Botto...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/Center.js
src/display/align/in/Center.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CenterOn = require('../../bounds/CenterOn'); var GetCenterX = require('../../bounds/GetCenterX'); var GetCenterY = require('../../bounds/Get...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/TopRight.js
src/display/align/in/TopRight.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetRight = require('../../bounds/GetRight'); var GetTop = require('../../bounds/GetTop'); var SetRight = require('../../bounds/SetRight'); v...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/RightCenter.js
src/display/align/in/RightCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterY = require('../../bounds/GetCenterY'); var GetRight = require('../../bounds/GetRight'); var SetCenterY = require('../../bounds/Set...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/BottomLeft.js
src/display/align/in/BottomLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetLeft = require('../../bounds/GetLeft'); var SetBottom = require('../../bounds/SetBotto...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/BottomCenter.js
src/display/align/in/BottomCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetBottom = require('../../bounds/GetBottom'); var GetCenterX = require('../../bounds/GetCenterX'); var SetBottom = require('../../bounds/Se...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/TopLeft.js
src/display/align/in/TopLeft.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetLeft = require('../../bounds/GetLeft'); var GetTop = require('../../bounds/GetTop'); var SetLeft = require('../../bounds/SetLeft'); var S...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/align/in/TopCenter.js
src/display/align/in/TopCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetCenterX = require('../../bounds/GetCenterX'); var GetTop = require('../../bounds/GetTop'); var SetCenterX = require('../../bounds/SetCent...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/typedefs/HSVColorObject.js
src/display/typedefs/HSVColorObject.js
/** * @typedef {object} Phaser.Types.Display.HSVColorObject * @since 3.0.0 * * @property {number} h - The hue color value. A number between 0 and 1 * @property {number} s - The saturation color value. A number between 0 and 1 * @property {number} v - The lightness color value. A number between 0 and 1 */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/typedefs/index.js
src/display/typedefs/index.js
/** * @namespace Phaser.Types.Display */
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/typedefs/InputColorObject.js
src/display/typedefs/InputColorObject.js
/** * @typedef {object} Phaser.Types.Display.InputColorObject * @since 3.0.0 * * @property {number} [r] - The red color value in the range 0 to 255. * @property {number} [g] - The green color value in the range 0 to 255. * @property {number} [b] - The blue color value in the range 0 to 255. * @property {number} ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/display/typedefs/ColorObject.js
src/display/typedefs/ColorObject.js
/** * @typedef {object} Phaser.Types.Display.ColorObject * @since 3.0.0 * * @property {number} r - The red color value in the range 0 to 255. * @property {number} g - The green color value in the range 0 to 255. * @property {number} b - The blue color value in the range 0 to 255. * @property {number} a - The alp...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/index.js
src/geom/index.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 Extend = require('../utils/object/Extend'); /** * @namespace Phaser.Geom */ var Geom = { Circle: re...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/const.js
src/geom/const.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GEOM_CONST = { /** * A Circle Geometry object type. * * @name Phaser.Geom.CIRCLE * @type {number} * @since 3.1...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/FitOutside.js
src/geom/rectangle/FitOutside.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetAspectRatio = require('./GetAspectRatio'); /** * Adjusts the target rectangle, changing its width, height and position, * so that it f...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Offset.js
src/geom/rectangle/Offset.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Nudges (translates) the top left corner of a Rectangle by a given offset. * * @function Phaser.Geom.Rectangle.Offset * @since 3.0.0 *...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/GetSize.js
src/geom/rectangle/GetSize.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns the size of the Rectangle, expressed as a Point object. * With the value of the `width` ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Random.js
src/geom/rectangle/Random.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns a random point within a Rectangle. * * @function Phaser.Geom.Rectangle.Random * @since...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Floor.js
src/geom/rectangle/Floor.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Rounds down (floors) the top left X and Y coordinates of the given Rectangle to the largest integer less than or equal to them * * @fun...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/OffsetPoint.js
src/geom/rectangle/OffsetPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Nudges (translates) the top-left corner of a Rectangle by the coordinates of a point (translation vector). * * @function Phaser.Geom.Re...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/ContainsPoint.js
src/geom/rectangle/ContainsPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Contains = require('./Contains'); /** * Determines whether the specified point is contained within the rectangular region defined by this ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Equals.js
src/geom/rectangle/Equals.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Compares the `x`, `y`, `width` and `height` properties of two rectangles. * * @function Phaser.Geom.Rectangle.Equals * @since 3.0.0 *...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/SameDimensions.js
src/geom/rectangle/SameDimensions.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality. * * @f...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Perimeter.js
src/geom/rectangle/Perimeter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculates the perimeter of a Rectangle. * * @function Phaser.Geom.Rectangle.Perimeter * @since 3.0.0 * * @param {Phaser.Geom.Rectan...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/index.js
src/geom/rectangle/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); Rectangle.Area = require('./Area'); Rectangle.Ceil = require('./Ceil'); Rectangle.CeilAll = require('./...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/CeilAll.js
src/geom/rectangle/CeilAll.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Rounds a Rectangle's position and size up to the smallest integer greater than or equal to each respective value. * * @function Phaser....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/FromPoints.js
src/geom/rectangle/FromPoints.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); var MATH_CONST = require('../../math/const'); /** * Constructs new Rectangle or repositions and resize...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/FitInside.js
src/geom/rectangle/FitInside.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetAspectRatio = require('./GetAspectRatio'); /** * Adjusts the target rectangle, changing its width, height and position, * so that it f...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Rectangle.js
src/geom/rectangle/Rectangle.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 Contains = require('./Contains'); var GetPoint = require('./GetPoint'); var GetPoints = require('....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/MergeXY.js
src/geom/rectangle/MergeXY.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Merges a Rectangle with a point by repositioning and/or resizing it so that the point is on or within its bounds. * * @function Phaser....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/ContainsRect.js
src/geom/rectangle/ContainsRect.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Tests if one rectangle fully contains another. * * @function Phaser.Geom.Rectangle.ContainsRect * @since 3.0.0 * * @param {Phaser.Ge...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Clone.js
src/geom/rectangle/Clone.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); /** * Creates a new Rectangle which is identical to the given one. * * @function Phaser.Geom.Rectang...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Ceil.js
src/geom/rectangle/Ceil.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Rounds a Rectangle's position up to the smallest integer greater than or equal to each current coordinate. * * @function Phaser.Geom.Re...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/MergeRect.js
src/geom/rectangle/MergeRect.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Merges the source rectangle into the target rectangle and returns the target. * Neither rectangle should have a negative width or height...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Decompose.js
src/geom/rectangle/Decompose.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Create an array of points for each corner of a Rectangle * If an array is specified, each point object will be added to the end of the a...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Inflate.js
src/geom/rectangle/Inflate.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CenterOn = require('./CenterOn'); /** * Increases the size of a Rectangle by a specified amount. * * The center of the Rectangle stays t...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Scale.js
src/geom/rectangle/Scale.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Scales the width and height of this Rectangle by the given amounts. * * @function Phaser.Geom.Rectangle.Scale * @since 3.0.0 * * @ge...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/FloorAll.js
src/geom/rectangle/FloorAll.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Rounds a Rectangle's position and size down to the largest integer less than or equal to each current coordinate or dimension. * * @fun...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/FromXY.js
src/geom/rectangle/FromXY.js
/** * @author samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); /** * Create the smallest Rectangle containing two coordinate pairs. * * @function Phaser.Geom.Rectangle.FromXY * @since 3.2...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Contains.js
src/geom/rectangle/Contains.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks if a given point is inside a Rectangle's bounds. * * @function Phaser.Geom.Rectangle.Contains * @since 3.0.0 * * @param {Phas...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/GetPoint.js
src/geom/rectangle/GetPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Perimeter = require('./Perimeter'); var Point = require('../point/Point'); /** * Calculates the coordinates of a point at a certain `posit...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/GetAspectRatio.js
src/geom/rectangle/GetAspectRatio.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculates the width/height ratio of a rectangle. * * @function Phaser.Geom.Rectangle.GetAspectRatio * @since 3.0.0 * * @param {Phas...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Overlaps.js
src/geom/rectangle/Overlaps.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Checks if two Rectangles overlap. If a Rectangle is within another Rectangle, the two will be considered overlapping. Thus, the Rectangle...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/PerimeterPoint.js
src/geom/rectangle/PerimeterPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); var DegToRad = require('../../math/DegToRad'); /** * Returns a Point from the perimeter of a Rectangle ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/CopyFrom.js
src/geom/rectangle/CopyFrom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Copy the values of one Rectangle to a destination Rectangle. * * @function Phaser.Geom.Rectangle.CopyFrom * @since 3.0.0 * * @generi...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Area.js
src/geom/rectangle/Area.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculates the area of the given Rectangle object. * * @function Phaser.Geom.Rectangle.Area * @since 3.0.0 * * @param {Phaser.Geom.R...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Intersection.js
src/geom/rectangle/Intersection.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); var Intersects = require('../intersects/RectangleToRectangle'); /** * Takes two Rectangles and first c...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/Union.js
src/geom/rectangle/Union.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('./Rectangle'); /** * Creates a new Rectangle or repositions and/or resizes an existing Rectangle so that it encompass...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/CenterOn.js
src/geom/rectangle/CenterOn.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Moves the top-left corner of a Rectangle so that its center is at the given coordinates. * * @function Phaser.Geom.Rectangle.CenterOn ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/GetPoints.js
src/geom/rectangle/GetPoints.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GetPoint = require('./GetPoint'); var Perimeter = require('./Perimeter'); /** * Return an array of points from the perimeter of the rectan...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/MarchingAnts.js
src/geom/rectangle/MarchingAnts.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Perimeter = require('./Perimeter'); var Point = require('../point/Point'); /** * Returns an array of points from the perimeter of the Rect...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/MergePoints.js
src/geom/rectangle/MergePoints.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Merges a Rectangle with a list of points by repositioning and/or resizing it such that all points are located on or within its bounds. *...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/RandomOutside.js
src/geom/rectangle/RandomOutside.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Between = require('../../math/Between'); var ContainsRect = require('./ContainsRect'); var Point = require('../point/Point'); /** * Calcul...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/rectangle/GetCenter.js
src/geom/rectangle/GetCenter.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns the center of a Rectangle as a Point. * * @function Phaser.Geom.Rectangle.GetCenter * ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Offset.js
src/geom/circle/Offset.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Offsets the Circle by the values given. * * @function Phaser.Geom.Circle.Offset * @since 3.0.0 * * @generic {Phaser.Geom.Circle} O -...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/CircumferencePoint.js
src/geom/circle/CircumferencePoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns a Point object containing the coordinates of a point on the circumference of the Circle b...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Random.js
src/geom/circle/Random.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Point = require('../point/Point'); /** * Returns a uniformly distributed random point from anywhere within the given Circle. * * @functi...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/OffsetPoint.js
src/geom/circle/OffsetPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Offsets the Circle by the values given in the `x` and `y` properties of the Point object. * * @function Phaser.Geom.Circle.OffsetPoint ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Circle.js
src/geom/circle/Circle.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 Contains = require('./Contains'); var GetPoint = require('./GetPoint'); var GetPoints = require('....
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/ContainsPoint.js
src/geom/circle/ContainsPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Contains = require('./Contains'); /** * Check to see if the Circle contains the given Point object. * * @function Phaser.Geom.Circle.Con...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Equals.js
src/geom/circle/Equals.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Compares the `x`, `y` and `radius` properties of the two given Circles. * Returns `true` if they all match, otherwise returns `false`. ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/index.js
src/geom/circle/index.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Circle = require('./Circle'); Circle.Area = require('./Area'); Circle.Circumference = require('./Circumference'); Circle.CircumferencePoint...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Circumference.js
src/geom/circle/Circumference.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the circumference of the given Circle. * * @function Phaser.Geom.Circle.Circumference * @since 3.0.0 * * @param {Phaser.Geom...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/ContainsRect.js
src/geom/circle/ContainsRect.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Contains = require('./Contains'); /** * Check to see if the Circle contains all four points of the given Rectangle object. * * @function...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Clone.js
src/geom/circle/Clone.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Circle = require('./Circle'); /** * Creates a new Circle instance based on the values contained in the given source. * * @function Phase...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/GetBounds.js
src/geom/circle/GetBounds.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Rectangle = require('../rectangle/Rectangle'); /** * Returns the bounds of the Circle object. * * @function Phaser.Geom.Circle.GetBounds...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Contains.js
src/geom/circle/Contains.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Check to see if the Circle contains the given x / y coordinates. * * @function Phaser.Geom.Circle.Contains * @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/geom/circle/GetPoint.js
src/geom/circle/GetPoint.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var CircumferencePoint = require('./CircumferencePoint'); var FromPercent = require('../../math/FromPercent'); var MATH_CONST = require('../../m...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/CopyFrom.js
src/geom/circle/CopyFrom.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Copies the `x`, `y` and `radius` properties from the `source` Circle * into the given `dest` Circle, then returns the `dest` Circle. * ...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/Area.js
src/geom/circle/Area.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Calculates the area of the circle. * * @function Phaser.Geom.Circle.Area * @since 3.0.0 * * @param {Phaser.Geom.Circle} circle - The...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false
phaserjs/phaser
https://github.com/phaserjs/phaser/blob/a9965625f49cf366584f454556b039e06e8adad6/src/geom/circle/GetPoints.js
src/geom/circle/GetPoints.js
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Circumference = require('./Circumference'); var CircumferencePoint = require('./CircumferencePoint'); var FromPercent = require('../../math/...
javascript
MIT
a9965625f49cf366584f454556b039e06e8adad6
2026-01-04T14:59:32.525416Z
false