summaryrefslogtreecommitdiff
path: root/src/render/graphics.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphics.js')
-rw-r--r--src/render/graphics.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/render/graphics.js b/src/render/graphics.js
index 06d0b2c..aa4195e 100644
--- a/src/render/graphics.js
+++ b/src/render/graphics.js
@@ -34,14 +34,6 @@ game.graphics = (
const col = Math.floor(currentFrame / rows);
context.drawImage(image, spriteX+col*spriteWidth, spriteY+row*spriteHeight, spriteWidth, spriteHeight, x, y, width, height);
- // apply color to sprite
- if (color) {
- context.globalAlpha=0.7;
- context.globalCompositeOperation="source-atop";
- context.fillStyle=color;
- context.fillRect(x, y, width, height);
- }
-
context.restore();
};
} else {