> do you know rgb > colours are in hex am I missing something or being dumb?
Show HN: Do you know RGB?
21–30 of 64 posts
Re: Show HN: Do you know RGB?
#22> do you know rgb > 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
Re: Show HN: Do you know RGB?
#23I like it, but when you make your guess the mystery color should change to the color it describes, not to green or red. You should use some other aspect to indicate success - shape, motion, font, anything other than color. You already have it shaking for an incorrect guess, so that’s good.
Re: Show HN: Do you know RGB?
#2418/20, first try :)
Re: Show HN: Do you know RGB?
#25Re: Show HN: Do you know RGB?
#26> do you know rgb > colours are in hex am I missing something or being dumb?
This is hexadecimal notation for rgb. Each character represents 2 bytes, which encode a value from 0 to 255. 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 fo…
Re: Show HN: Do you know RGB?
#27Definitely don't make the game end dafter one wrong guess. At least give me some lives or something, damn. Or, better yet, just let me play to the end, then give me my score.
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.
Re: Show HN: Do you know RGB?
#28Re: Show HN: Do you know RGB?
#29Re: Show HN: Do you know RGB?
#30I’m so confused. This is something people know? I mean, I can work it out from first principles knowing how color mixing works, but it sounds like people just … know them? I’ve been programming for almost 40 years and it would never have occurred to me to memorize this sort of thing.
4096 colors is not too much to memorize.
In the programming language, we call it "f00"
4096 words for colors!