From cdd45693c56c8988e2adf68660138e8198d53f9a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 15 Oct 2017 15:37:24 +0000 Subject: [PATCH] Fix --- commands/image-edit/achievement.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/image-edit/achievement.js b/commands/image-edit/achievement.js index ff06af07..dc40c168 100644 --- a/commands/image-edit/achievement.js +++ b/commands/image-edit/achievement.js @@ -32,11 +32,13 @@ module.exports = class AchievementCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); ctx.font = '17px Minecraftia'; - ctx.fillText('Achievement Get!', 60, 14); + ctx.fillStyle = '#ffff00'; + ctx.fillText('Achievement Get!', 60, 27); let shorten; if (ctx.measureText(text).width > 230) shorten = true; while (ctx.measureText(text).width > 230) text = text.substr(0, text.length - 1); - ctx.fillText(shorten ? `${text}...` : text, 60, 36); + ctx.fillStyle = '#ffffff'; + ctx.fillText(shorten ? `${text}...` : text, 60, 49); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'achievement.png' }] }); } };