phaser/src/renderer/ScaleModes.js
2020-01-15 12:07:09 +00:00

48 lines
819 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 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 {integer}
* @readonly
* @since 3.0.0
*/
DEFAULT: 0,
/**
* Linear Scale Mode.
*
* @name Phaser.ScaleModes.LINEAR
* @type {integer}
* @readonly
* @since 3.0.0
*/
LINEAR: 0,
/**
* Nearest Scale Mode.
*
* @name Phaser.ScaleModes.NEAREST
* @type {integer}
* @readonly
* @since 3.0.0
*/
NEAREST: 1
};
module.exports = ScaleModes;