2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-02-09 13:46:04 +00:00
|
|
|
/**
|
2018-03-29 15:42:20 +00:00
|
|
|
* Phaser Blend Modes.
|
|
|
|
*
|
|
|
|
* @name Phaser.BlendModes
|
|
|
|
* @enum {integer}
|
2018-10-10 09:49:13 +00:00
|
|
|
* @memberof Phaser
|
2018-10-09 12:40:00 +00:00
|
|
|
* @readonly
|
2018-03-29 15:42:20 +00:00
|
|
|
* @since 3.0.0
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
COLOR_BURN: 8,
|
2018-02-09 13:46:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hard Light blend mode.
|
|
|
|
*
|
2018-02-22 01:17:54 +00:00
|
|
|
* @name Phaser.BlendModes.HARD_LIGHT
|
2018-02-09 13:46:04 +00:00
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
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
|
|
|
|
*/
|
2017-01-18 14:09:26 +00:00
|
|
|
LUMINOSITY: 16
|
|
|
|
|
|
|
|
};
|