‹ BackHN Continuity

Thread

Show HN: Simple algorithm and color space to generate diverse skin tones

619 points · 100 comments · automatoney

  1. herf · · focus · HN ↗
    This seems to do XYZ->RGB without any gamma correction. XYZ is linear, as is the transform to RGB, so we usually convert linear RGB to (gamma-encoded) sRGB at the end.

    The JS code seems to output linear RGB directly to the webpage (missing gamma). I guess the difficulty with "adding gamma" to it is this: if the training data were also gamma encoded, then it might need to be refit with linear values.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.