Earlier quoted context omitted.
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…
In CSS, #07f is the same as #0077ff. (i.e. double each symbols)
Show HN: Do you know RGB?
51–60 of 64 posts
Re: Show HN: Do you know RGB?
#52Maybe there should be some minimum distance between all of the choices.
Re: Show HN: Do you know RGB?
#53Re: Show HN: Do you know RGB?
#54I 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?
#55Re: Show HN: Do you know RGB?
#56a 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?
Re: Show HN: Do you know RGB?
#57ask urself that question? 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?
Re: Show HN: Do you know RGB?
#58Earlier quoted context omitted.
That mechanic can be implemented without starting a new game at all. Increment a counter on correct guess, reset to 0 on incorrect, continue on through the game.
yes but you also need the length of your streak displayed
Re: Show HN: Do you know RGB?
#59I’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.
I got 14/20 on my first try just by knowing how the color mixing works. A few simple rules: - 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)