diff options
Diffstat (limited to 'public/bluebey-studio/src/faceArt.js')
| -rw-r--r-- | public/bluebey-studio/src/faceArt.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/bluebey-studio/src/faceArt.js b/public/bluebey-studio/src/faceArt.js index e63f197..11319c1 100644 --- a/public/bluebey-studio/src/faceArt.js +++ b/public/bluebey-studio/src/faceArt.js @@ -954,7 +954,6 @@ export function drawHeadCoverWrap(ctx, spec, layout) { const base = HAIR_WRAP_LAYOUT.base + (size - 1) * HAIR_WRAP_LAYOUT.reach + clamp(spec.offsetY ?? 0, -600, 600) * HAIR_WRAP_LAYOUT.offsetScale; - const color = spec.color ?? '#8a4fe0'; ctx.save(); ctx.beginPath(); @@ -995,7 +994,10 @@ export function drawHeadCoverWrap(ctx, spec, layout) { } ctx.lineTo(W, 0); ctx.closePath(); - ctx.fillStyle = color; + // A white mask: the colour is applied by the hair plate's material, so it goes + // through the same colour path as the body instead of being baked into the + // canvas (which shaded differently on iOS). + ctx.fillStyle = '#ffffff'; ctx.fill(); ctx.restore(); } |
