This commit is contained in:
Dragon Fire
2020-06-14 20:43:06 -04:00
parent f10684cc4e
commit 41b54d1a14
2 changed files with 2 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 843 KiB

+2 -2
View File
@@ -45,11 +45,11 @@ module.exports = class MyCollectionGrowsCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, base.width, base.height);
ctx.drawImage(base, 0, 0);
ctx.rotate(-14 * (Math.PI / 180));
const { x, y, width, height } = centerImagePart(avatar, 850, 850, 289, 358);
const { x, y, width, height } = centerImagePart(avatar, 425, 425, 145, 179);
ctx.drawImage(avatar, x, y, width, height);
ctx.rotate(14 * (Math.PI / 180));
ctx.drawImage(base, 0, 0);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'my-collection-grows.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);