phaser/src/renderer/ScaleModes.js
2023-01-02 17:36:27 +00:00

48 lines
817 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2013-2023 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Phaser Scale Modes.
*
* @namespace Phaser.ScaleModes
* @since 3.0.0
*/
var ScaleModes = {
/**
* Default Scale Mode (Linear).
*
* @name Phaser.ScaleModes.DEFAULT
* @type {number}
* @readonly
* @since 3.0.0
*/
DEFAULT: 0,
/**
* Linear Scale Mode.
*
* @name Phaser.ScaleModes.LINEAR
* @type {number}
* @readonly
* @since 3.0.0
*/
LINEAR: 0,
/**
* Nearest Scale Mode.
*
* @name Phaser.ScaleModes.NEAREST
* @type {number}
* @readonly
* @since 3.0.0
*/
NEAREST: 1
};
module.exports = ScaleModes;