mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Make devito faces bigger
This commit is contained in:
@@ -53,10 +53,10 @@ module.exports = class DannyDevitoCommand extends Command {
|
||||
const height = danny.height * ratio;
|
||||
ctx.drawImage(
|
||||
danny,
|
||||
landmarks.contour_left1.x,
|
||||
landmarks.contour_left1.y - (height / 2),
|
||||
width,
|
||||
height
|
||||
landmarks.contour_left1.x - (width * 0.75),
|
||||
landmarks.contour_left1.y - (height / 2) - (height * 0.75),
|
||||
width * 1.5,
|
||||
height * 1.5
|
||||
);
|
||||
}
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'danny-devito.png' }] });
|
||||
|
||||
Reference in New Issue
Block a user