Added example for .tatoo()

Fixed the litle hole at the top of the users pic on .thomas()
This commit is contained in:
2020-06-12 01:56:42 +02:00
parent c4d2c3f744
commit ec7379c854
3 changed files with 12 additions and 4 deletions

View File

@@ -432,13 +432,13 @@ class DIG {
const ctx = canvas.getContext("2d");
const avatar = await Canvas.loadImage(image);
const background = await Canvas.loadImage(__dirname +"/assets/thomas.png");
ctx.drawImage(avatar, 220, 200, 400, 400);
ctx.drawImage(avatar, 220, 190, 400, 400);
ctx.drawImage(background, 0, 0, 841, 1058);
return canvas.toBuffer();
}
/**
* Thomas
* Tatoo
* @param {image} image
*/
static async tatoo(image) {