phaser/src/renderer/BlendModes.js

176 lines
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
/**
* @namespace Phaser.BlendModes
*/
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
*/
NORMAL: 0,
2018-02-09 13:46:04 +00:00
/**
* Add blend mode.
*
* @name Phaser.BlendModes.ADD
* @type {integer}
* @since 3.0.0
*/
ADD: 1,
2018-02-09 13:46:04 +00:00
/**
* Multiply blend mode.
*
* @name Phaser.BlendModes.MULTIPLY
* @type {integer}
* @since 3.0.0
*/
MULTIPLY: 2,
2018-02-09 13:46:04 +00:00
/**
* Screen blend mode.
*
* @name Phaser.BlendModes.SCREEN
* @type {integer}
* @since 3.0.0
*/
SCREEN: 3,
2018-02-09 13:46:04 +00:00
/**
* Overlay blend mode.
*
* @name Phaser.BlendModes.OVERLAY
* @type {integer}
* @since 3.0.0
*/
OVERLAY: 4,
2018-02-09 13:46:04 +00:00
/**
* Darken blend mode.
*
* @name Phaser.BlendModes.DARKEN
* @type {integer}
* @since 3.0.0
*/
DARKEN: 5,
2018-02-09 13:46:04 +00:00
/**
* Lighten blend mode.
*
* @name Phaser.BlendModes.LIGHTEN
* @type {integer}
* @since 3.0.0
*/
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
*/
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
*/
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
*/
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
*/
SOFT_LIGHT: 10,
2018-02-09 13:46:04 +00:00
/**
* Difference blend mode.
*
* @name Phaser.BlendModes.DIFFERENCE
* @type {integer}
* @since 3.0.0
*/
DIFFERENCE: 11,
2018-02-09 13:46:04 +00:00
/**
* Exclusion blend mode.
*
* @name Phaser.BlendModes.EXCLUSION
* @type {integer}
* @since 3.0.0
*/
EXCLUSION: 12,
2018-02-09 13:46:04 +00:00
/**
* Hue blend mode.
*
* @name Phaser.BlendModes.HUE
* @type {integer}
* @since 3.0.0
*/
HUE: 13,
2018-02-09 13:46:04 +00:00
/**
* Saturation blend mode.
*
* @name Phaser.BlendModes.SATURATION
* @type {integer}
* @since 3.0.0
*/
SATURATION: 14,
2018-02-09 13:46:04 +00:00
/**
* Color blend mode.
*
* @name Phaser.BlendModes.COLOR
* @type {integer}
* @since 3.0.0
*/
COLOR: 15,
2018-02-09 13:46:04 +00:00
/**
* Luminosity blend mode.
*
* @name Phaser.BlendModes.LUMINOSITY
* @type {integer}
* @since 3.0.0
*/
LUMINOSITY: 16
};