mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Fix blend mode detection syntax.
This commit is contained in:
parent
1126c699d2
commit
a908556956
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ var BlendMode = new function() {
|
|||
if (ctx.globalCompositeOperation === mode) {
|
||||
ctx.fillStyle = darken ? '#a00' : '#300';
|
||||
ctx.fillRect(0, 0, 1, 1);
|
||||
ok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken ? 170 : 51;
|
||||
ok = ctx.getImageData(0, 0, 1, 1).data[0] !== (darken ? 170 : 51);
|
||||
}
|
||||
ctx.restore();
|
||||
return ok;
|
||||
|
|
Loading…
Reference in a new issue