aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bluebey-studio/src
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-03 22:34:36 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-03 22:34:36 +0900
commit5ef401508a9affb1aa64758a0975c3b53f3e1b2b (patch)
treeea61a50a69c8cebe8bb0451c710e472a4e94aec8 /public/bluebey-studio/src
parent29b586cadb8b6ba9913168636d92de78182345b8 (diff)
public/bluebey-studio: 半分ひげのミラーが左にずれるのを修正
左右半分のひげで、ミラー側を [-halfW,0] に描くように修正。これまでは右半分も左側に描かれていて、全体が左にずれていた。
Diffstat (limited to 'public/bluebey-studio/src')
-rw-r--r--public/bluebey-studio/src/faceArt.js3
1 files changed, 2 insertions, 1 deletions
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;
}