Canvas opacity instead of css

This commit is contained in:
ahocevar
2019-05-22 11:53:38 +02:00
parent 7895b16043
commit c56ad4363d
5 changed files with 22 additions and 18 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ export function drawImage(context,
context.drawImage(image, originX, originY, w, h, x, y, w * scale, h * scale);
if (alpha) {
if (opacity != 1) {
context.globalAlpha = alpha;
}
if (transform) {