forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlendMode.js
More file actions
43 lines (30 loc) · 690 Bytes
/
Copy pathBlendMode.js
File metadata and controls
43 lines (30 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var BlendModes = require('../../renderer/BlendModes');
// BlendMode Component
var BlendMode = {
_blendMode: BlendModes.NORMAL,
blendMode: {
get: function ()
{
return this._blendMode;
},
set: function (value)
{
if (typeof value === 'string')
{
value = BlendModes[value];
}
value | 0;
if (value >= 0)
{
this._blendMode = value;
}
}
},
// const or string
setBlendMode: function (value)
{
this.blendMode = value;
return this;
}
};
module.exports = BlendMode;