phaser/v3/src/components/BlendMode.js

38 lines
563 B
JavaScript
Raw Normal View History

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 && value <= 16)
{
this._blendMode = value;
}
}
},
setBlendMode: function (value)
{
this.blendMode = value;
return this;
}
};
module.exports = BlendMode;