r/ProgrammerHumor • • 4d ago

Meme colorInANutshell

Post image
5.4k Upvotes

125 comments sorted by

View all comments

12

u/twpejay 4d ago

RGB is a direct correlation to most display devices and also how eyes work maybe needs a brightness to mimic the rods. Just needs more values per colour really. Why complicate matters.

11

u/fnordius 3d ago

Hot and cold taps are a direct correlation to how water is delivered to the sink. Why complicate matters with a different type of faucet control?

4

u/thanatica 3d ago

Don't make me think. That's why. It's a book, and a damn good one as well.

One of the things it outlines, is how UIs are often designed from the system's perspective, rather than the user's perspective.

1

u/fnordius 2d ago

Amazing, how old my copy is, and how many teams still ignore this maxim.

1

u/l0rb 2d ago

And for as long as my users are forced to use my product anyway because it's an in-house solution that management decreed into existence I will keep ignoring it.

17

u/Neveed 3d ago edited 3d ago

Because when we see color, we don't perceive it as "This is intense red and green with almost no blue" which RGB represents, we perceive it as "this is bright saturated yellow", which HSV represents.

11

u/Worth-Wonder-7386 3d ago

But it is not our eyes that see color, but our brain. That is why hsv makes sense to use in more cases.

6

u/pr0ghead 3d ago

Nothing to do with "sense". It makes tonal adjustments easier, because you only need to turn one knob. Is all.

2

u/Zerokx 3d ago

Well adjusting hue, value and saturation are what feels more intuitive and is easier to actually work with so it does make sense though?
I can't be the only one who thinks "This scene needs to be brighter so I turn the brightness knob" is more intuitive than
"I need to probably increase mostly blue but also some red to have a brighter scene but keep the color, hmm no now it looks too blue and doesnt fit with the rest of the scene anymore."

2

u/conundorum 3d ago edited 3d ago

Ultimately, this is why it would make sense to use RGB and/or CMYK to determine the base colour, and then convert to HSV to make adjustments. We get the precision of mixing shades, and marry it to the intuitiveness of just adjusting the brightness knob.

Edit: That, and extend RGB/CMYK to allow negative values, to help model cyans.

1

u/UncleKeyPax 3d ago

all we need is know ladies and gentlemen both or neither

4

u/Professional-Goal266 3d ago

our visual system isn't rgb based. the cones in our eyes are sensitive to red, green, and blue respectively but those gets processed as achromatic, blue-yellow, red-green.

0

u/_PM_ME_PANGOLINS_ 3d ago

No, that’s the LUV colour space. The XYZ is the one that directly models human vision.

3

u/Professional-Goal266 3d ago

The retinal ganglion cells take the stimulus from our cones and builds an achromatic, yellow-blue, red-green opponency system. LUV just so happens to use this same principle.

and cie 1931 XYZ does not directly model human perception. it just so happened to somewhat align with what the cones in our eyes do which wasn't known at the time. there is a reason why cie 2006 shifted to using LMS instead of XYZ. Though even then cie 2006 LMS itself doesn't model human vision because the cones are just the first step in our "visual pipeline". It does give you building blocks to roughly model human vision yourself by making so basic assumptions however.

1

u/meneldal2 3d ago

For people without color blindness, because if you start to include them you're going to need a tons of extra models

2

u/danielrheath 3d ago

The sRGB color space can’t represent half of the colors the eye can see; most of the cyans are not covered.

https://moultano.wordpress.com/2026/06/19/where-to-find-the-colors-your-screen-cant-show-you/ 

Is a good rundown of it

1

u/thanatica 3d ago

With a caveat: colour profiles. RGB is not strictly direct if whatever device or application you render to, has a colour profile active that isn't an inert 1-to-1 passthrough.