From 291408cc4939e68aac60fb7a4cd37d0fea85c57a Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 4 Oct 2026 18:53:03 +0900 Subject: bluebey-studio: 下まぶたの線が浮いて二重瞼に見えるのを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 下まぶたの線だけクリップと量が違っていたため、眼球の底より上に浮いて別の線に見えていた。クリップと同じ lowerLid×(1-open) で描くようにした。 --- public/bluebey-studio/src/faceArt.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'public/bluebey-studio/src/faceArt.js') diff --git a/public/bluebey-studio/src/faceArt.js b/public/bluebey-studio/src/faceArt.js index 5ed821d..c5eca6e 100644 --- a/public/bluebey-studio/src/faceArt.js +++ b/public/bluebey-studio/src/faceArt.js @@ -1472,9 +1472,14 @@ export function drawEyes(ctx, p) { lidPath(ctx, eye, open, false, lidFlat); ctx.stroke(); } - if (lowerLid > 0.01) { - ctx.globalAlpha = line ? 1 : lowerLid; - lidPath(ctx, eye, lowerLid, true, lidFlat); + // The lower lid fades out as the eye closes (the upper lid does the work), + // and the *line* has to use the same amount as the clip above - using the + // raw `lowerLid` left the line floating inside the eyeball, which read as a + // second (doubled) lid. + const lower = lowerLid * (1 - open); + if (lower > 0.01) { + ctx.globalAlpha = line ? 1 : lower; + lidPath(ctx, eye, lower, true, lidFlat); ctx.stroke(); } ctx.restore(); -- cgit v1.3.1