phaser/src/renderer/BlendModes.js

146 lines
2.3 KiB
JavaScript
Raw Normal View History

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}
* @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
*/
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
*/
NORMAL: 0,
2018-02-09 13:46:04 +00:00
/**
* Add blend mode.
*
* @name Phaser.BlendModes.ADD
*/
ADD: 1,
2018-02-09 13:46:04 +00:00
/**
* Multiply blend mode.
*
* @name Phaser.BlendModes.MULTIPLY
*/
MULTIPLY: 2,
2018-02-09 13:46:04 +00:00
/**
* Screen blend mode.
*
* @name Phaser.BlendModes.SCREEN
*/
SCREEN: 3,
2018-02-09 13:46:04 +00:00
/**
* Overlay blend mode.
*
* @name Phaser.BlendModes.OVERLAY
*/
OVERLAY: 4,
2018-02-09 13:46:04 +00:00
/**
* Darken blend mode.
*
* @name Phaser.BlendModes.DARKEN
*/
DARKEN: 5,
2018-02-09 13:46:04 +00:00
/**
* Lighten blend mode.
*
* @name Phaser.BlendModes.LIGHTEN
*/
LIGHTEN: 6,
2018-02-09 13:46:04 +00:00
/**
* Color Dodge blend mode.
*
* @name Phaser.BlendModes.COLOR_DODGE
*/
COLOR_DODGE: 7,
2018-02-09 13:46:04 +00:00
/**
* Color Burn blend mode.
*
* @name Phaser.BlendModes.COLOR_BURN
*/
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
*/
HARD_LIGHT: 9,
2018-02-09 13:46:04 +00:00
/**
* Soft Light blend mode.
*
* @name Phaser.BlendModes.SOFT_LIGHT
*/
SOFT_LIGHT: 10,
2018-02-09 13:46:04 +00:00
/**
* Difference blend mode.
*
* @name Phaser.BlendModes.DIFFERENCE
*/
DIFFERENCE: 11,
2018-02-09 13:46:04 +00:00
/**
* Exclusion blend mode.
*
* @name Phaser.BlendModes.EXCLUSION
*/
EXCLUSION: 12,
2018-02-09 13:46:04 +00:00
/**
* Hue blend mode.
*
* @name Phaser.BlendModes.HUE
*/
HUE: 13,
2018-02-09 13:46:04 +00:00
/**
* Saturation blend mode.
*
* @name Phaser.BlendModes.SATURATION
*/
SATURATION: 14,
2018-02-09 13:46:04 +00:00
/**
* Color blend mode.
*
* @name Phaser.BlendModes.COLOR
*/
COLOR: 15,
2018-02-09 13:46:04 +00:00
/**
* Luminosity blend mode.
*
* @name Phaser.BlendModes.LUMINOSITY
*/
LUMINOSITY: 16
};