aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bluebey-studio/src/faceArt.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bluebey-studio/src/faceArt.js')
-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;
}