A bit less transparent

This commit is contained in:
Daniel Odendahl Jr
2018-09-19 20:40:40 +00:00
parent e5ed88b7c4
commit 1c91cd6bc0
+1 -1
View File
@@ -37,7 +37,7 @@ module.exports = class VietnamFlashbacksCommand extends Command {
const ratio = base.width / base.height;
const width = Math.round(data.height * ratio);
ctx.drawImage(base, (data.width / 2) - (width / 2), 0, width, data.height);
ctx.globalAlpha = 0.5;
ctx.globalAlpha = 0.75;
ctx.drawImage(data, 0, 0);
const attachment = canvas.toBuffer();
if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');