Skip to content

Commit b0fc226

Browse files
committed
Merge pull request #33 from igagen/global-alpha
Fix setGlobalAlpha
2 parents f8d1fa2 + 8df3631 commit b0fc226

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Graphics/Canvas.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ exports.setGlobalCompositeOperationImpl = function(ctx) {
158158
exports.setGlobalAlpha = function(ctx) {
159159
return function(alpha) {
160160
return function() {
161-
ctx.setGlobalAlpha = alpha;
161+
ctx.globalAlpha = alpha;
162162
return ctx;
163163
};
164164
};
@@ -573,4 +573,3 @@ exports.bezierCurveTo = function(bCurve) {
573573
};
574574
};
575575
};
576-

0 commit comments

Comments
 (0)