From 41863f3ef22fb2e53177e45b5a635ce1cfa40230 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 14:23:23 -0400 Subject: [PATCH] Align who-pkmn style with anime --- commands/games-sp/whos-that-pokemon.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/whos-that-pokemon.js b/commands/games-sp/whos-that-pokemon.js index 1e855ff6..95e996c4 100644 --- a/commands/games-sp/whos-that-pokemon.js +++ b/commands/games-sp/whos-that-pokemon.js @@ -135,8 +135,14 @@ module.exports = class WhosThatPokemonCommand extends Command { const silhouetteCtx = silhouetteCanvas.getContext('2d'); silhouetteCtx.drawImage(pkmn, 0, 0); silhouette(silhouetteCtx, 0, 0, pkmn.width, pkmn.height); + ctx.globalAlpha = 0.5; + ctx.drawImage(silhouetteCanvas, 25, 44, 200, 200); + ctx.globalAlpha = 1; ctx.drawImage(silhouetteCanvas, 30, 39, 200, 200); } else { + ctx.globalAlpha = 0.5; + ctx.drawImage(pkmn, 25, 44, 200, 200); + ctx.globalAlpha = 1; ctx.drawImage(pkmn, 30, 39, 200, 200); ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60); ctx.textAlign = 'center'; @@ -146,9 +152,9 @@ module.exports = class WhosThatPokemonCommand extends Command { ctx.globalAlpha = 0.5; ctx.strokeText(pokemon.name, 357, 163, 240); ctx.globalAlpha = 1; - ctx.strokeStyle = '#3c5aa6'; + ctx.strokeStyle = '#ffcb05'; ctx.strokeText(pokemon.name, 362, 158, 240); - ctx.fillStyle = '#ffcb05'; + ctx.fillStyle = '#3c5aa6'; ctx.fillText(pokemon.name, 362, 158, 240); } return { attachment: canvas.toBuffer(), name };