phaser/src/renderer/BlendModes.js
2018-10-09 13:40:00 +01:00

145 lines
2.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}
*/
/**
* Phaser Blend Modes.
*
* @name Phaser.BlendModes
* @enum {integer}
* @memberOf Phaser
* @readonly
* @since 3.0.0
*/
module.exports = {
/**
* Skips the Blend Mode check in the renderer.
*
* @name Phaser.BlendModes.SKIP_CHECK
*/
SKIP_CHECK: -1,
/**
* Normal blend mode.
*
* @name Phaser.BlendModes.NORMAL
*/
NORMAL: 0,
/**
* Add blend mode.
*
* @name Phaser.BlendModes.ADD
*/
ADD: 1,
/**
* Multiply blend mode.
*
* @name Phaser.BlendModes.MULTIPLY
*/
MULTIPLY: 2,
/**
* Screen blend mode.
*
* @name Phaser.BlendModes.SCREEN
*/
SCREEN: 3,
/**
* Overlay blend mode.
*
* @name Phaser.BlendModes.OVERLAY
*/
OVERLAY: 4,
/**
* Darken blend mode.
*
* @name Phaser.BlendModes.DARKEN
*/
DARKEN: 5,
/**
* Lighten blend mode.
*
* @name Phaser.BlendModes.LIGHTEN
*/
LIGHTEN: 6,
/**
* Color Dodge blend mode.
*
* @name Phaser.BlendModes.COLOR_DODGE
*/
COLOR_DODGE: 7,
/**
* Color Burn blend mode.
*
* @name Phaser.BlendModes.COLOR_BURN
*/
COLOR_BURN: 8,
/**
* Hard Light blend mode.
*
* @name Phaser.BlendModes.HARD_LIGHT
*/
HARD_LIGHT: 9,
/**
* Soft Light blend mode.
*
* @name Phaser.BlendModes.SOFT_LIGHT
*/
SOFT_LIGHT: 10,
/**
* Difference blend mode.
*
* @name Phaser.BlendModes.DIFFERENCE
*/
DIFFERENCE: 11,
/**
* Exclusion blend mode.
*
* @name Phaser.BlendModes.EXCLUSION
*/
EXCLUSION: 12,
/**
* Hue blend mode.
*
* @name Phaser.BlendModes.HUE
*/
HUE: 13,
/**
* Saturation blend mode.
*
* @name Phaser.BlendModes.SATURATION
*/
SATURATION: 14,
/**
* Color blend mode.
*
* @name Phaser.BlendModes.COLOR
*/
COLOR: 15,
/**
* Luminosity blend mode.
*
* @name Phaser.BlendModes.LUMINOSITY
*/
LUMINOSITY: 16
};