2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.BlendModes
|
|
|
|
*/
|
2017-08-02 16:06:27 +00:00
|
|
|
|
2017-01-18 14:09:26 +00:00
|
|
|
module.exports = {
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
|
|
|
* Skips the Blend Mode check in the renderer.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.SKIP_CHECK
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-10-17 03:17:04 +00:00
|
|
|
SKIP_CHECK: -1,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Normal blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.NORMAL
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
NORMAL: 0,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Add blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.ADD
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
ADD: 1,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Multiply blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.MULTIPLY
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
MULTIPLY: 2,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Screen blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.SCREEN
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
SCREEN: 3,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Overlay blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.OVERLAY
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
OVERLAY: 4,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Darken blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.DARKEN
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
DARKEN: 5,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lighten blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.LIGHTEN
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
LIGHTEN: 6,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Color Dodge blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.COLOR_DODGE
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
COLOR_DODGE: 7,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Color Burn blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.COLOR_BURN
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
COLOR_BURN: 8,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hard Light blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.SOFT_LIGHT
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
HARD_LIGHT: 9,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Soft Light blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.SOFT_LIGHT
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
SOFT_LIGHT: 10,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Difference blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.DIFFERENCE
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
DIFFERENCE: 11,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Exclusion blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.EXCLUSION
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
EXCLUSION: 12,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hue blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.HUE
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
HUE: 13,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Saturation blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.SATURATION
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
SATURATION: 14,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Color blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.COLOR
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
COLOR: 15,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Luminosity blend mode.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes.LUMINOSITY
|
|
|
|
* @type {integer}
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
LUMINOSITY: 16
|
|
|
|
|
|
|
|
};
|