diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-03 22:34:36 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-10-03 22:34:36 +0900 |
| commit | 5ef401508a9affb1aa64758a0975c3b53f3e1b2b (patch) | |
| tree | ea61a50a69c8cebe8bb0451c710e472a4e94aec8 /public | |
| parent | 29b586cadb8b6ba9913168636d92de78182345b8 (diff) | |
public/bluebey-studio: 半分ひげのミラーが左にずれるのを修正
左右半分のひげで、ミラー側を [-halfW,0] に描くように修正。これまでは右半分も左側に描かれていて、全体が左にずれていた。
Diffstat (limited to 'public')
| -rw-r--r-- | public/bluebey-studio/src/faceArt.js | 3 |
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; } |
