mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix lint
This commit is contained in:
+1
-2
@@ -78,8 +78,7 @@ class CanvasUtil {
|
||||
}
|
||||
|
||||
static drawImageWithTint(ctx, image, color, x, y, width, height) {
|
||||
const fillStyle = ctx.fillStyle;
|
||||
const globalAlpha = ctx.globalAlpha;
|
||||
const { fillStyle, globalAlpha } = ctx;
|
||||
ctx.fillStyle = color;
|
||||
ctx.drawImage(image, x, y, width, height);
|
||||
ctx.globalAlpha = 0.5;
|
||||
|
||||
Reference in New Issue
Block a user