From 5ef401508a9affb1aa64758a0975c3b53f3e1b2b Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 3 Oct 2026 22:34:36 +0900 Subject: public/bluebey-studio: 半分ひげのミラーが左にずれるのを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 左右半分のひげで、ミラー側を [-halfW,0] に描くように修正。これまでは右半分も左側に描かれていて、全体が左にずれていた。 --- public/bluebey-studio/src/faceArt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/bluebey-studio/src/faceArt.js b/public/bluebey-studio/src/faceArt.js index 38df333..a14f53a 100644 --- a/public/bluebey-studio/src/faceArt.js +++ b/public/bluebey-studio/src/faceArt.js @@ -905,7 +905,8 @@ function drawBeard(ctx, spec, lineOnly = false, textures = null) { ctx.save(); ctx.translate(cx + gap, cy); ctx.scale(-1, 1); - ctx.drawImage(image, 0, -dh / 2, halfW, dh); + // Draw into [-halfW, 0] so that, mirrored, it lands in [cx+gap, cx+gap+halfW]. + ctx.drawImage(image, -halfW, -dh / 2, halfW, dh); ctx.restore(); return; } -- cgit v1.3.1