From e664c7a8b5266ac2ec92062e0214def1c21187e0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:13:49 -0400 Subject: [PATCH] Make eyes bigger --- 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 eb64af8e..d8c1c273 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 / 5; - const eyeHeight = face.box.height / 5; + const eyeWidth = face.box.width / 3; + const eyeHeight = face.box.height / 3; const leftEyeData = face.keypoints.find(landmark => landmark.name === 'leftEye'); const rightEyeData = face.keypoints.find(landmark => landmark.name === 'rightEye'); const leftEyeX = leftEyeData.x - (eyeWidth / 2);