mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
175 lines
3 KiB
JavaScript
175 lines
3 KiB
JavaScript
/**
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
*/
|
|
|
|
/**
|
|
* @namespace Phaser.BlendModes
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
/**
|
|
* Skips the Blend Mode check in the renderer.
|
|
*
|
|
* @name Phaser.BlendModes.SKIP_CHECK
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SKIP_CHECK: -1,
|
|
|
|
/**
|
|
* Normal blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.NORMAL
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
NORMAL: 0,
|
|
|
|
/**
|
|
* Add blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.ADD
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
ADD: 1,
|
|
|
|
/**
|
|
* Multiply blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.MULTIPLY
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
MULTIPLY: 2,
|
|
|
|
/**
|
|
* Screen blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.SCREEN
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SCREEN: 3,
|
|
|
|
/**
|
|
* Overlay blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.OVERLAY
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
OVERLAY: 4,
|
|
|
|
/**
|
|
* Darken blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.DARKEN
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
DARKEN: 5,
|
|
|
|
/**
|
|
* Lighten blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.LIGHTEN
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
LIGHTEN: 6,
|
|
|
|
/**
|
|
* Color Dodge blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.COLOR_DODGE
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
COLOR_DODGE: 7,
|
|
|
|
/**
|
|
* Color Burn blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.COLOR_BURN
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
COLOR_BURN: 8,
|
|
|
|
/**
|
|
* Hard Light blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.HARD_LIGHT
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
HARD_LIGHT: 9,
|
|
|
|
/**
|
|
* Soft Light blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.SOFT_LIGHT
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SOFT_LIGHT: 10,
|
|
|
|
/**
|
|
* Difference blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.DIFFERENCE
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
DIFFERENCE: 11,
|
|
|
|
/**
|
|
* Exclusion blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.EXCLUSION
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
EXCLUSION: 12,
|
|
|
|
/**
|
|
* Hue blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.HUE
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
HUE: 13,
|
|
|
|
/**
|
|
* Saturation blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.SATURATION
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
SATURATION: 14,
|
|
|
|
/**
|
|
* Color blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.COLOR
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
COLOR: 15,
|
|
|
|
/**
|
|
* Luminosity blend mode.
|
|
*
|
|
* @name Phaser.BlendModes.LUMINOSITY
|
|
* @type {integer}
|
|
* @since 3.0.0
|
|
*/
|
|
LUMINOSITY: 16
|
|
|
|
};
|