From 5a63b5be68159b05c7509d87b6816f5ae9316f0b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 8 Mar 2020 18:07:36 -0400 Subject: [PATCH] Fix wrong colors --- commands/avatar-edit/rip.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/commands/avatar-edit/rip.js b/commands/avatar-edit/rip.js index db58d744..9ff8fb27 100644 --- a/commands/avatar-edit/rip.js +++ b/commands/avatar-edit/rip.js @@ -61,15 +61,13 @@ module.exports = class RipCommand extends Command { ctx.drawImage(base, 0, 0); ctx.drawImage(avatar, 194, 399, 500, 500); greyscale(ctx, 194, 399, 500, 500); + ctx.textBaseline = 'top'; ctx.textAlign = 'center'; ctx.font = '62px Coffin Stone'; - ctx.fillStyle = 'white'; + ctx.fillStyle = 'black'; ctx.fillText(user.username, 432, 346, 500); - if (cause) { - ctx.fillStyle = 'black'; - ctx.fillText(cause, 432, 920, 500); - ctx.fillStyle = 'white'; - } + ctx.fillStyle = 'white'; + if (cause) ctx.fillText(cause, 432, 920, 500); ctx.font = '37px Coffin Stone'; ctx.fillText('In Loving Memory of', 432, 292); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'rip.png' }] });