mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
A bit smaller
This commit is contained in:
@@ -46,10 +46,10 @@ module.exports = class ShrekCommand extends Command {
|
|||||||
const height = shrek.height * ratio;
|
const height = shrek.height * ratio;
|
||||||
ctx.drawImage(
|
ctx.drawImage(
|
||||||
shrek,
|
shrek,
|
||||||
face.box.xMin - (face.box.width * 0.2),
|
face.box.xMin - (face.box.width * 0.3),
|
||||||
face.box.yMin - (height / 2.5),
|
face.box.yMin - (height / 2.5),
|
||||||
face.box.width * 1.6,
|
face.box.width * 1.5,
|
||||||
height * 1.6
|
height * 1.5
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'shrek.png' }] });
|
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'shrek.png' }] });
|
||||||
|
|||||||
Reference in New Issue
Block a user