From 1b56cf4ff222d803f4c14d64114c567d8a20a1ac Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:14:35 -0400 Subject: [PATCH] Bit smaller --- commands/edit-face/anime-eyes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-face/anime-eyes.js b/commands/edit-face/anime-eyes.js index d8c1c273..da38e6c6 100644 --- a/commands/edit-face/anime-eyes.js +++ b/commands/edit-face/anime-eyes.js @@ -43,8 +43,8 @@ module.exports = class AnimeEyesCommand extends Command { const ctx = canvas.getContext('2d'); ctx.drawImage(base, 0, 0); for (const face of faces) { - const eyeWidth = face.box.width / 3; - const eyeHeight = face.box.height / 3; + const eyeWidth = face.box.width / 4; + const eyeHeight = face.box.height / 4; const leftEyeData = face.keypoints.find(landmark => landmark.name === 'leftEye'); const rightEyeData = face.keypoints.find(landmark => landmark.name === 'rightEye'); const leftEyeX = leftEyeData.x - (eyeWidth / 2);