This commit is contained in:
Dragon Fire
2024-05-03 01:28:20 -04:00
parent 51935e0045
commit e2d41fce70
+2 -2
View File
@@ -56,9 +56,9 @@ module.exports = class WildPokemonCommand extends Command {
const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11);
pixelize(ctx, canvas, data, 0.30, x, y, width, height);
greyscale(ctx, x, y, width, height);
ctx.letterSpacing = '6px';
ctx.letterSpacing = '5px';
ctx.textBaseline = 'top';
ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(18);
ctx.font = this.client.fonts.get('PokemonGb.ttf').toCanvasString(16);
ctx.fillText(name.toUpperCase(), 106, 203, 215);
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'wild-pokemon.png' }] });
}