Darken to-be-continued sepia

This commit is contained in:
Dragon Fire
2018-08-06 15:31:47 -04:00
parent d45a23b110
commit 5c08d91faf
+4
View File
@@ -36,6 +36,10 @@ module.exports = class ToBeContinuedCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.drawImage(data, 0, 0);
sepia(ctx, 0, 0, data.width, data.height);
ctx.globalAlpha = 0.5;
ctx.fillStyle = '#704214';
ctx.fillRect(0, 0, data.width, data.height);
ctx.globalAlpha = 1;
const ratio = base.width / base.height;
const width = canvas.width / 2;
const height = Math.round(width / ratio);