I hate canvas with rotation

This commit is contained in:
dragonfire535
2017-10-02 18:32:57 -04:00
parent 23a03c9a9f
commit 8ae45099f5
@@ -41,7 +41,7 @@ module.exports = class LookAtThisPhotographCommand extends Command {
const avatar = await loadImage(body);
ctx.drawImage(base, 0, 0);
ctx.rotate(-13.5 * (Math.PI / 180));
ctx.drawImage(avatar, 321, 147, 175, 125);
ctx.drawImage(avatar, 221, 247, 175, 125);
ctx.rotate(13.5 * (Math.PI / 180));
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'look-at-this-photograph.png' }] });
} catch (err) {