From 6de729f11875c8857c4e7d6914ff92b89956e779 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 19 Apr 2020 16:25:12 -0400 Subject: [PATCH] Make ghost a bit more transparent --- commands/edit-image/ghost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/ghost.js b/commands/edit-image/ghost.js index abbf8372..cafc133f 100644 --- a/commands/edit-image/ghost.js +++ b/commands/edit-image/ghost.js @@ -33,7 +33,7 @@ module.exports = class GhostCommand extends Command { const ctx = canvas.getContext('2d'); ctx.fillStyle = 'white'; ctx.fillRect(0, 0, data.width, data.height); - ctx.globalAlpha = 0.5; + ctx.globalAlpha = 0.25; ctx.drawImage(data, 0, 0); const attachment = canvas.toBuffer(); if (Buffer.byteLength(attachment) > 8e+6) return msg.reply('Resulting image was above 8 MB.');