mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 09:34:02 +00:00
31 lines
451 B
JavaScript
31 lines
451 B
JavaScript
|
var BlendModes = require('../renderer/BlendModes');
|
||
|
|
||
|
// BlendMode Component
|
||
|
|
||
|
var _blendMode = BlendModes.NORMAL;
|
||
|
|
||
|
var BlendMode = {
|
||
|
|
||
|
blendMode: {
|
||
|
|
||
|
get: function ()
|
||
|
{
|
||
|
return _blendMode;
|
||
|
},
|
||
|
|
||
|
set: function (value)
|
||
|
{
|
||
|
value | 0;
|
||
|
|
||
|
if (value >= 0 && value <= 16)
|
||
|
{
|
||
|
_blendMode = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = BlendMode;
|