mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 17:16:03 +00:00
37 lines
551 B
JavaScript
37 lines
551 B
JavaScript
var BlendModes = require('../../renderer/BlendModes');
|
|
|
|
// BlendMode Component
|
|
|
|
var BlendMode = {
|
|
|
|
_blendMode: BlendModes.NORMAL,
|
|
|
|
blendMode: {
|
|
|
|
get: function ()
|
|
{
|
|
return this._blendMode;
|
|
},
|
|
|
|
set: function (value)
|
|
{
|
|
value | 0;
|
|
|
|
if (value >= 0)
|
|
{
|
|
this._blendMode = value;
|
|
}
|
|
}
|
|
|
|
},
|
|
|
|
setBlendMode: function (value)
|
|
{
|
|
this.blendMode = value;
|
|
|
|
return this;
|
|
}
|
|
|
|
};
|
|
|
|
module.exports = BlendMode;
|