phaser/src/renderer/ScaleModes.js
2019-01-15 16:20:22 +00:00

40 lines
682 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Phaser Scale Modes.
*
* @name Phaser.ScaleModes
* @enum {integer}
* @memberof Phaser
* @readonly
* @since 3.0.0
*/
module.exports = {
/**
* Default Scale Mode (Linear).
*
* @name Phaser.ScaleModes.DEFAULT
*/
DEFAULT: 0,
/**
* Linear Scale Mode.
*
* @name Phaser.ScaleModes.LINEAR
*/
LINEAR: 0,
/**
* Nearest Scale Mode.
*
* @name Phaser.ScaleModes.NEAREST
*/
NEAREST: 1
};