Hacker News new | ask | show | jobs
by amelius 17 days ago
We already have 3-digit hex colors, e.g. #fff is white.

I don't see the point of using decimals here. You only lose resolution.

2 comments

author here. i find it hard to count with letters
Dang, given all the cool visual work on your website I absolutely would not have expected that. Always good to be reminded how disparate we all are from one another.

Makes me grateful I got my mom to sign that waiver to let me get on Neopets, I don't even see the hex code anymore, I just see marigold, umber, vermilion.

Well, I find it hard to reason with RGB values. It is much easier to use HSV, to be honest, after looking up the Hue with a tool.
author here. that's okay this tool is for me
That's certain okay with me, but I assumed you came here to get feedback.
They did not submit it and they can't take it down either
i didn't
Sorry who are you? Are you the author?
that's so real tbh
Feedback is when it's useful.
If one works with shaders, you get the best of both worlds just by dividing by 10:

  vec3 color = vec3(1.0, 0.3, 0.9);
One decimal digit ought to be enough for anyone.
Take care here though, because shaders are almost always working in linear sRGB colors, while color codes are almost always defined in gamma-encoded sRGB.

This property makes it mildly annoying to copy color constants between different contexts.

Also if you divide by 10 your maximum is 0.9, not 1.0.

So you still need a calculator to map between the two.