Live data from Hacker News

Show HN: Do you know RGB?

maxwellito.github.io

51–60 of 64 posts

Re: Show HN: Do you know RGB?

#51

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)

Thanks for the correction!

Re: Show HN: Do you know RGB?

#52
Got to number 15 and the color was #C61. My choices were #D52, #161, #C61, and #C63. Sadly, I guessed #C63 and lost.

Maybe there should be some minimum distance between all of the choices.

Re: Show HN: Do you know RGB?

#53
I was actually hoping for a completely different type of game. As someone who is colorblind, my use case for RGB is to translate a description of a color (e.g. fuchsia) to a hex value for display on screen. Matching a hex value to a swatch is just setting myself up for failure.

Re: Show HN: Do you know RGB?

#54
post #18

I 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.

That was confusing as hell. I had the mystery color at the top, just the hex characters, and it looked like it would be a light green. I tap on the light green and the mystery color box at the top turns dark green, yet it shows the same hex code as the light green one I tapped on. I can't tell if I got it right, wrong, or what. I tried another and it was equally confusing, so I left.

Re: Show HN: Do you know RGB?

#57

ask 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?

RGB is a color scale of three fractions. Those fractions can each be measured with any number of bits (1 bit, 4 bits, and 8 bits are choices that have seen some use).

Re: Show HN: Do you know RGB?

#58
post #49

Earlier 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

Not really. The proportion correct is more informative.

Re: Show HN: Do you know RGB?

#59
post #8

I’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

The typical sets of primary/secondary colors are RGB and CMY. Which set is considered "primary" depends on if you're doing additive (light) or subtractive (ink/pigment) mixing.

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)

Post reply on HN