2017-07-04 00:59:31 +00:00
|
|
|
var BlendModes = require('../../renderer/BlendModes');
|
2017-02-23 03:10:48 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
2017-08-03 01:09:59 +00:00
|
|
|
if (value >= 0)
|
2017-02-23 03:10:48 +00:00
|
|
|
{
|
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;
|