Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
Post image 7
Post image 8
Post image 9
Post image 10
1 / 10
625

What Colors Are We? Constructing A Color Space For Skin Tones

Hacker News·about 2 months ago
#0zERrzQc
Reading 0:00
15s threshold

If you're just looking for the results, below is a custom color picker based on the color space written in Javascript and a sample procedural generation algorithm in Python (Javascript equivalents are in the page source) - feel free to take this math and go have fun depicting our diverse world! The goal of this project was to define a color space that makes it easier to build inclusive color tools for a variety of contexts - such as character creators or digital art. If you see something here that sparks your curiosity, I would love for you to stick around and read below this section to learn more! R² = ( What's R²? ) │ Show Sphere What is each direction on the picker adjusting? Jump to that explanation here . # Plug the output of one of the select_point implementations into to_rgb(t, u, v) def select_point(r_square: float = 2.) -> tuple[float, float, float]: """Uniformly sample from the sphere deterministically""" radius = r_square ** (1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More