diff --git a/README.md b/README.md index 91a8e1c..e717a15 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ You can also join me on my discord server.< - You can now configure a currency - Added .thomas() +## v0.1.11 +- Added .tatoo() +- Updated JSDoc + # Download diff --git a/package.json b/package.json index beecc65..6b1f7d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-image-generation", - "version": "0.1.10", + "version": "0.1.11", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "main": "src/index.js", "scripts": { diff --git a/src/module/DIG.js b/src/module/DIG.js index 277c78f..e378cf1 100644 --- a/src/module/DIG.js +++ b/src/module/DIG.js @@ -49,7 +49,7 @@ class DIG { } /** - * + * Gay * @param {image} image */ static async gay(image) { @@ -393,7 +393,7 @@ class DIG { } /** - * + * Jail * @param {image} image */ static async jail(image) { @@ -408,7 +408,7 @@ class DIG { } /** - * + * MMS * @param {image} image */ static async mms(image) { @@ -436,6 +436,21 @@ class DIG { ctx.drawImage(background, 0, 0, 841, 1058); return canvas.toBuffer(); } + + /** + * Thomas + * @param {image} image + */ + static async tatoo(image) { + if (!image) throw new Error("You must provide an image as a first argument."); + const canvas = Canvas.createCanvas(750, 1089); + const ctx = canvas.getContext("2d"); + const avatar = await Canvas.loadImage(image); + const background = await Canvas.loadImage(__dirname +"/assets/tatoo.png"); + ctx.drawImage(avatar, 145, 575, 400, 400); + ctx.drawImage(background, 0, 0, 750, 1089); + return canvas.toBuffer(); + } } module.exports = DIG; diff --git a/src/module/assets/tatoo.png b/src/module/assets/tatoo.png new file mode 100644 index 0000000..e7da33c Binary files /dev/null and b/src/module/assets/tatoo.png differ