r/ProgrammerHumor • • 2d ago • Helpful 1 Bravo 1

Meme colorInANutshell

Post image
5.0k Upvotes

115 comments sorted by

257

u/Multifruit256 2d ago

If this doesn't fit the sub pls let me know

321

u/helicophell 1d ago

> Meme that fits the sub

Yeah idk something tells me you shouldn't worry too much

149

u/AbdullahMRiad 1d ago

fits the sub more than like 90% of the posts here

-38

u/GoddammitDontShootMe 1d ago

Still really has zero to do with programming. Or there's absolutely nothing programming specific about it.

31

u/Cool_Faithlessness8 1d ago

Wtf are you talking about? The meme is literally about a way to program color

1

u/EldestPort 1d ago

Frontend goes brrrrrr

-1

u/GoddammitDontShootMe 18h ago

I'm going to take the chance that you aren't fucking with me and ask how the hell you "program color"? HSV and RGB are two of several ways to describe a color.

57

u/lastrosade 1d ago

Dude, you made the first meme that fits the sub that I've seen in at least a year.

6

u/my_new_accoun1 1d ago

I love it

8

u/joemckie 1d ago

Not enough AI bashing, it’ll probably be removed soon sorry

8

u/lucklesspedestrian 1d ago

Ai bashing is better than the era of "Hai guyz, html is real programming, right?"

1.2k

u/Great-Use-3149 2d ago

where's the third valve in the right?

1.8k

u/GertDalPozzo 1d ago • Bravo Regret

You perfectly know valve can’t count to 3

392

u/Pixl02 1d ago • Regret

71

u/melophat 1d ago

Damn, throw that shade, homie! I love it, well played...

2

u/Adventurous_Bonus917 16h ago

there's even a song about it.

1

u/grammar_nazi_zombie 22h ago

My six year old just finished Portal and started Portal 2

Last night she said “wow this is fun, I bet Portal 3 is AMAZING.”

…yeah, about that…

37

u/davvblack 1d ago

they are both just two dimensional but it’s still a good metaphor

38

u/DarkWingedDaemon 2d ago

That's the angle of the faucet.

1

u/guitarguy109 1d ago

Maybe this is the sink for only UV coordinates?

1.2k

u/girlzlut 2d ago • Bravo

holy shit this is the first time in probably genuinely years i've seen a new, actually creative meme on this sub 😭

240

u/IAmASwarmOfBees 1d ago

Yeah, what is this? This is not a "how do I exit vim" or "vibecoding bad/good" meme...

58

u/cbigle 1d ago

Don’t forget python slow

151

u/KingOfWhateverr 1d ago

It’s all fun and games until you’re programming a lighting unit and have to balance additive mixing(RGB leds) vs CMY moving lights(there are CMY color filters in them). Irl vs concept suckssss

41

u/TH3RM4L33 1d ago

Yeah transitions/overlaps between all possible 2 colors are impossible in HSV. For example you can't make a gradient between green and red, cause the hue slider will go through yellow and orange. In RGB you can just incrementally inc/dec each channel and you won't end up with unwanted colors in the middle.

13

u/Kovab 1d ago

In RGB you can just incrementally inc/dec each channel and you won't end up with unwanted colors in the middle.

Maybe I'm missing something, but if you do that incremental change from FF0000 to 00FF00, wouldn't you still end up with yellow in the middle, when both channels are at half strength?

12

u/TH3RM4L33 1d ago edited 1d ago

You do, but the fact that 2 or more channels are approaching the same value (and are also approaching 0), makes the color look so dark/washed out to the point that it doesn't exactly look like yellow to us anymore, it'll look like a shade of green.

4

u/RockSlice 1d ago

808000 is officially called "Olive Green". The transition is from red to browns to green, with greenish browns at the midpoint. But that's probably one of the colors with the largest perceptual differences between people, even ignoring people that are colorblind.

You could probably even find people matching different paint swatches to the color displayed on a monitor

1

u/Rabbitical 2h ago

It's a difference in intensity. If you imagine the color wheel, and red is a point all the way at the perimiter, adjusting the hue rotates the point on that color wheel about the center, maintaining its maximal distance such that it remains on the perimiter, passing through yellow. Interpolating RGB however does not preserve the apparent intensity of the color-- instead you're plotting a straight line between red and green, which will of course shortcut the perimiter of the color wheel in getting there, so you end up with darker intermediate values, I.e. more brown instead of yellow.

5

u/ScallionSmooth5925 1d ago

But it's not going to be a linear transition 

2

u/m_redditUser 1d ago

try oklch

9

u/ThomasDePraetere 1d ago

I once had to implement a color diagram for fiber splicing. TIA-598. Which Munsel wire and cable colors. Which is a coloring scheme for PVC (plastic). It's color space can best be described as a cilinder. But it became quickly clear to me that there is no 1-1 mapping with rgb and some colors couldn't even be converted to rgb or the other way around.

Luckily, for my use-case, within the acceptable boundaries for each defined fiber color there was an rgb equivalent.

4

u/Ekdritch 1d ago

Had a project which had an RGB input and a CIE1931 output. Lots of fun maths in that one

128

u/ktka 1d ago

Sooo HSV is Herpes Simplex Virus, right?

48

u/xzinik 1d ago

No, hsv Simplex virus

25

u/XayahTheVastaya 1d ago

Is that like a cyclical CRC check?

12

u/Hatedpriest 1d ago

Using your personal PIN number at the automated ATM machine...

13

u/lucklesspedestrian 1d ago

Automated ass to mouth machine?

-3

u/Hatedpriest 1d ago

ATM

Automated
Teller
Machine

Get your mind out the gutter

3

u/rsatrioadi 1d ago

*CRC Redundancy Check

0

u/riisen 1d ago

You just wrote:

Cyclical Cyclic Redundancy Check Check

2

u/conundorum 1d ago

(That's the joke. He's poking at hsv Simplex virus (Herpes Simplex Virus Simplex virus) being redundant, with another somewhat common redundant misuse. Just like personal PIN number and automated ATM machine in the other guy' comment.)

7

u/Complete_Court_8052 1d ago

what does HSV in HSV Simplex Virus stands for?

15

u/Raikojou 1d ago

It stands for HSV Simplex Virus

4

u/Immabed 1d ago

Correct

1

u/Ok-Scheme-913 1d ago

Is it also coming from Stallmann?

insert bottom panel of hello human resources meme

8

u/Arlochorim 1d ago

Holy shit, VIOLET!

3

u/sln1337 1d ago

nah its Hamburger Sport Verein

2

u/seth1299 1d ago

Huh, I never realized how close HSV was to RSV, lol

49

u/Rialagma 1d ago

I only know this because HSV is one of the only two cyclical colormaps in matplotlib

2

u/adzm 1d ago

Oklabch isn't in there?

15

u/iStumblerLabs 1d ago

No LAB?

7

u/remy_porter 1d ago

LCH is the HSV of CIE.

4

u/dian_01 1d ago

LCH is really good if you work within the color gradeing mindset. It’s way more simple than LAB (although it has its place) and it’s based on actual colour perception research…
I quite like this useful demonstration tool that demonstrates the different axis of the 3D colour space…

3

u/remy_porter 1d ago

I've done a fair bit of lighting design work, and people just love hue rotations, but they always default to doing it in HSV. You migrate it over to LCH and it's so much smoother and nicer.

3

u/eyetracker 1d ago

HSV is good for laymen, scientists give Lab Luv.

1

u/iStumblerLabs 1d ago

LAB is modeled on how your eyes perceive color: Luminance in the rods, A and B channels in the cones.

1

u/eyetracker 5h ago

Not quite, rods stop working properly when light is anything above very dim, L is mostly the red and green cones. a and b are opponent processes (cone(s) minus cone(s)), physiologically further in the visual system than rods and cones. Lab system itself is among the closer to the visual response, but there are better ones that represent actual physiology.

9

u/Aksds 1d ago

Hsv

2

u/DaBrumby 1d ago

Came to mention this too

26

u/boiledbarnacle 1d ago

Actually you get more precision with two valves

43

u/Kaligraphic 1d ago • Bravo

Last time I tried to talk precisely to a bivalve, all it did was clam up.

4

u/Perfect_Perception 1d ago

Last time I tried to talk precisely to a clam I woke up in a straight jacket.

7

u/1_89 1d ago

I'm RGBA gang myself. Optical physics day job btw. Vis range 400-700nm light work.

17

u/Pentium95 1d ago

So.. Is CMYK only the water without pipe?

20

u/friendtoalldogs0 1d ago

CMYK is the drain

11

u/Fidodo 1d ago

I think CMYK would be three valves, hot, cold, which then merge and go to a third flow value. Something like this

3

u/Pentium95 1d ago

Gotta say, It took me a while Just to figure out where the water comes out

4

u/beegtuna 1d ago edited 1d ago

Hydrogen, water, fluoride, and 5G get ignited in the spout.

2

u/Clairifyed 1d ago

The water comes lukewarm and a heat pump pulls the heat/adds heat before pouring out of the faucet

4

u/rosuav 1d ago

Saturation is increased when you open the valve. This makes sense.

7

u/SweetNerevarine 1d ago

Whilst RGBA is like: you can't see me.

6

u/Fit_Relation8572 1d ago

All taps should be HSV. That's my ted talk.

3

u/damaca_ 1d ago

HS vs RG

9

u/twpejay 1d 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.

9

u/fnordius 1d 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?

2

u/thanatica 21h 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 15h ago

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

1

u/l0rb 9h 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.

16

u/Neveed 1d ago edited 1d 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.

10

u/Worth-Wonder-7386 1d 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 1d ago

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

2

u/Zerokx 1d 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 1d ago edited 1d 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 1d ago

all we need is know ladies and gentlemen both or neither

3

u/Professional-Goal266 1d 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_ 1d ago

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

3

u/Professional-Goal266 1d 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 1d ago

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

1

u/danielrheath 1d 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 21h 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.

4

u/Honest_Relation4095 1d ago

Both taps only have 2 adjustable parameters, not 3.

5

u/nosotrosoelcaos 1d ago

Also water is not colors

5

u/Honest_Relation4095 1d ago

Then why are there a blue and a red dot?

2

u/miguescout 1d ago

I'm now wondering what could represent YUV, though B.S. Johnson's shower comes to mind

2

u/Old_Ad5084 1d ago

oklch is the best

3

u/Cynixxx 1d ago

HSV

1

u/yamelnihno 1d ago

Nurderhsv!

1

u/zzmej1987 1d ago

I am laughing at it and being pissed off by how accurate that is simultaneously. XD

1

u/Mireldorn 14h ago edited 14h ago

Polar vs 2D orthogonal coordinatos equals sphere coordinates vs 3d orthogonal vectors?

I guess it equals the 2D Projection, so it's fine as an explanation.

Edit: cylindrical, not sphere.. So I guess it's even better

1

u/s0litar1us 9h ago

RGB is how color is displayed.
HSV/HSL is useful when you want to pick colors.
CMYK is for when you need to print something.

-4

u/MekaTriK 1d ago

Ah, so you're saying that HSV is objectively trash (just like those stupid valves).

2

u/Professional-Goal266 1d ago

op probably didn't mean that intentionally but I like this interpretation. if you are going to use a perceptually uniform colorspace for anything demanding you should really be using oklab, ictcp, jzazabz, etc.

1

u/MekaTriK 1d ago

I was making a stupid joke about the slide valves being trash :P
I prefer the old separate valves that take more than one turn to open/close fully.

I think oklab or okhsl are probably the best practical choices for colour spaces, but nothing too wrong with using RGB or HSL depending on application.

-36

u/Hallwart 2d ago

HSV? The football club?

I think you mean either HSL or HWB

33

u/evenstevens280 2d ago

HSV is a legit colour system

25

u/TheShirou97 2d ago

HSV is for Hue Saturation Value and is different from HSL https://en.wikipedia.org/wiki/HSL_and_HSV

HWB is yet another system.

5

u/TorbenKoehn 1d ago

There is HSL and HSV...