2017-02-23 03:10:48 +00:00
|
|
|
var BlendModes = require('../renderer/BlendModes');
|
|
|
|
|
|
|
|
// BlendMode Component
|
|
|
|
|
|
|
|
var BlendMode = {
|
|
|
|
|
2017-02-24 01:45:15 +00:00
|
|
|
_blendMode: BlendModes.NORMAL,
|
|
|
|
|
2017-02-23 03:10:48 +00:00
|
|
|
blendMode: {
|
|
|
|
|
|
|
|
get: function ()
|
|
|
|
{
|
2017-02-24 01:45:15 +00:00
|
|
|
return this._blendMode;
|
2017-02-23 03:10:48 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
set: function (value)
|
|
|
|
{
|
|
|
|
value | 0;
|
|
|
|
|
|
|
|
if (value >= 0 && value <= 16)
|
|
|
|
{
|
2017-02-24 01:45:15 +00:00
|
|
|
this._blendMode = value;
|
2017-02-23 03:10:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-21 02:12:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
setBlendMode: function (value)
|
|
|
|
{
|
|
|
|
this.blendMode = value;
|
|
|
|
|
|
|
|
return this;
|
2017-02-23 03:10:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = BlendMode;
|