Excellent game!
Dear HN community, susam built the GuessMyRGB game which was a huge inspiration for this game. Please take the time to play it!!
Guess my RGB - https://news.ycombinator.com/item?id=39882018 - March 2024 (144 comments)
edit: Oh, I see. Once you get one wrong the game ends immediately, but the score includes the full 20 rounds that you're supposed to get through.
- Higher values mean brighter colors
- The closer the individual colors are to each other, the closer to "gray" it looks
- R + G = Yellow, R + B = Fuchsia, G + B = Teal
In additive color mixing, Red (#F00), Green (#0F0) and Blue (#00F) are the primary colors, and Cyan, Magenta and Yellow are the secondary colors.
Cyan: Green+Blue (#0FF)
Magenta: Red+Blue (#F0F)
Yellow: Red+Green (#FF0)
In the programming language, we call it "f00"
4096 words for colors!
I like playing guess-RGB games every now and then because it improves the skill, but at the same time I find them really stressful haha.
did you try it? if you can work it out from first principles because you know how color mixing works, you should get a perfect score; that's the game. If you don't get a perfect score, you need to reinspect what you think you know about color mixing and even the first principles.
And then having a natural intuition for how the relative mixing of color values should look.
I’d say you could do pretty well if you took your time and thought analytically about it, but some people have just developed a strong intuition for it.
This would be much harder if there was a “none of the above” option.
However, you both ask about colors and use color for confirmation. This unfortunately is both confusing and makes a not nice overlap of one modality used for two things.
Quick solution: just use the correct color. Use other modality (e.g. shape V/X or text "Correct!" vs "Wrong!")
> colours are in hex
am I missing something or being dumb?
This is a bit more confusing because this is a shorthand notation: you’d actually need 2 hexadecimal characters for 2 bytes (eg #0077ff would be rbg(0, 127, 255)). In this shorthand notation, I think there’s an implied 0 (eg #07f is #0070f0).
So you can’t represent all rgb colour with only 3 characters, but for this use-case it’s fine.
In css you can use either of these 3 notations, for example
If someone asked me for a colour in "RGB" they'd be rightly confused if gave them a hex format colour (obviously you can convert between them but that's not what they asked for)
From <https://www.w3.org/TR/CSS1/>:
> The format of an RGB value in hexadecimal notation is a '#' immediately followed by either three or six hexadecimal characters. The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros. For example, #fb0 expands to #ffbb00. This makes sure that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display.
I'm quite fond of the 3-digit hexadecmial RGB notation. It's a concise way to express the colours I use for web pages or Emacs font locking. In these cases, I rarely need the full 16-million-colour range offered by 6 digits. The 3 digits are usually more than enough, at least to me.
Another possibility is to give it more of a tournament feel where the early cases are easy and the last ones are hard so I get disqualified at 15/20 (webdev and photographer who does gfx programming for fun) but a real goldeneye could go further. 3/20 does not represent my skill.
the way I'm suggesting (which is what the game is with extra clicks) is a game of "what's my longest streak of correct guesses" which actually makes your score look better than keeping your losses around.
Has anyone else noticed the weird new grey color that automobiles have in the last year or so? Does anyone know how to describe that color? Can anyone explain how it is different from previous greys in RGB terms? Or even in paint color terms?
Maybe there should be some minimum distance between all of the choices.
a 3 letter hex color is an HTML CSS convenience abbreviation… it has nothing to do with EGB..
i as u, how many bits are in an RGB color?
Yes I know it's probably sRGB because that's ubiquitous on the web, but "RGB" technically is not a colour space.
Also interesting people talking about how they estimate the colours in their head - sRGB is not perceptually linear so if you're good at this game you've kinda reverse engineered the sRGB transform in your brain.