Fixed confusedstonk

main
Killian 4 years ago
parent 205817edd6
commit f0712baaf8

@ -1,6 +1,6 @@
{ {
"name": "discord-image-generation", "name": "discord-image-generation",
"version": "1.3.2", "version": "1.3.3",
"description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

@ -11,7 +11,7 @@ module.exports = class ConfusedStonk {
const ctx = canvas.getContext(`2d`); const ctx = canvas.getContext(`2d`);
image1 = await Canvas.loadImage(image1); image1 = await Canvas.loadImage(image1);
const background = await Canvas.loadImage(`${__dirname}/../../assets/confusedStonk.png`); const background = await Canvas.loadImage(`${__dirname}/../../assets/confusedStonk.png`);
ctx.drawImage(image1, 230, 75, 400, 400); ctx.drawImage(image1, 190, 70, 400, 400);
ctx.drawImage(background, 0, 0, 1994, 1296); ctx.drawImage(background, 0, 0, 1994, 1296);
return canvas.toBuffer(); return canvas.toBuffer();
} }

Loading…
Cancel
Save