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