Align who-pkmn style with anime

This commit is contained in:
Dragon Fire
2024-03-24 14:23:23 -04:00
parent 4bd5e6cbbf
commit 41863f3ef2
+8 -2
View File
@@ -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 };