HeadlinesBriefing favicon HeadlinesBriefing.com

Simple Algorithm for Diverse Skin Tones

Hacker News •
×

I found picking diverse skin tones for digital art and game dev hard, so I built a color picker and procedural generation algorithm based on a custom color space. The goal was to make inclusive color tools easier to use in character creators and art tools.

The algorithm samples a sphere deterministically or via rejection, then maps (t,u,v) to RGB with linear equations. A Javascript picker on the page lets users see the results instantly, while the Python code demonstrates how to generate random skin tones.

Limitations are acknowledged: skin color varies by body area, health conditions, lighting, and display differences. The model is based on my own labeling and PCA of labeled RGB data, so it is a "good‑enough" starting point rather than an authoritative standard.

Future work includes refining the equations, expanding the dataset, and accounting for environmental factors. Still, the tool offers a practical way to generate plausible, diverse skin tones without relying on a fixed palette.