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

Meme colorInANutshell

Post image
5.6k Upvotes

135 comments sorted by

265

u/Multifruit256 5d ago

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

336

u/helicophell 5d ago

> Meme that fits the sub

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

159

u/AbdullahMRiad 5d ago

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

-40

u/GoddammitDontShootMe 5d ago

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

34

u/Cool_Faithlessness8 5d ago

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

1

u/EldestPort 4d ago

Frontend goes brrrrrr

-3

u/GoddammitDontShootMe 4d 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.

2

u/AidanIsNotGinger 2d ago

Somehow pedantic and still less precise than the person you're "correcting". These are colour models used for digitally representing and manipulating colours. In fact, HSV was specifically developed for computer graphics.

It's a bit like if someone posted a meme about HTML and you insisted it had nothing to do with programming, it's just for "describing a document".

And since you asked how you "program a colour", you could probably do it using HSV or RGB.

-1

u/GoddammitDontShootMe 2d ago

What makes that less precise exactly? Should I have said define a color?

To me the phrase "program a color" makes no sense at all. Manipulate colors with code? Absolutely.

1

u/chaudhary-theodore9 1d ago

For fixed values, say 'set a color'; for algorithms, 'program color behavior.' 'Program a color' is meme shorthand.

1

u/AidanIsNotGinger 1d ago

What do you think it means to program? Most people think it means to give a computer a set of instructions to perform a task. Like displaying a colour on a digital display for example.

You are being deliberately obtuse since you claim RGB and HSV have "zero to do with programming" and everyone knows that's a ridiculous statement. Especially since HSV was literally created for programming computer graphics.

1

u/GoddammitDontShootMe 1d ago

That's what I meant though. You can't give a color a set of instructions to follow.

Or there's absolutely nothing programming specific about it.

That much is true. RGB and HSV is widely used outside of programming. i.e. practically any image editor anywhere.

1

u/AidanIsNotGinger 23h ago

Except usualy the subject of the verb "program" is often not the thing you give instructions to, but the instructions you are giving the computer. People rarely say "I programmed a computer last year", they say things like "I programmed a CFD solver" or "I programmed a fitness app".

You are being deliberately obtuse and pedantic by insisting that you can't "program a colour".

Even your non-programming example of an image editor is programming related. But you're moving the goalposts. Most people on this subreddit probably don't think all posts have to be about things that are specific ONLY to programming and have no relevance in any other area, because nothing satisfies that criteria. So long as it is relevant to programming, you claimed it has "zero to do with" it.

→ More replies

58

u/lastrosade 5d 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 5d ago

I love it

9

u/joemckie 5d ago

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

9

u/lucklesspedestrian 5d ago

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

1.3k

u/Great-Use-3149 5d ago

where's the third valve in the right?

2.0k

u/GertDalPozzo 5d ago • Bravo Regret

You perfectly know valve can’t count to 3

447

u/Pixl02 5d ago • Regret

79

u/melophat 5d ago

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

4

u/Adventurous_Bonus917 4d ago

there's even a song about it.

2

u/grammar_nazi_zombie 4d 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…

47

u/davvblack 5d ago

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

38

u/DarkWingedDaemon 5d ago

That's the angle of the faucet.

1

u/GoddammitDontShootMe 1d ago

The type of faucet on the left really only has two axes. Obviously moving from hot to cold is H, but is opening and closing it S or V?

1

u/guitarguy109 4d ago

Maybe this is the sink for only UV coordinates?

1.3k

u/girlzlut 5d ago • Bravo

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

261

u/IAmASwarmOfBees 5d ago

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

68

u/cbigle 5d ago

Don’t forget python slow

177

u/KingOfWhateverr 5d 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

49

u/TH3RM4L33 5d 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.

15

u/Kovab 4d 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?

14

u/TH3RM4L33 4d ago edited 4d 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 4d 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

4

u/Rabbitical 3d 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 5d ago

But it's not going to be a linear transition 

2

u/m_redditUser 4d ago

try oklch

10

u/ThomasDePraetere 5d 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.

5

u/Ekdritch 5d ago

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

1

u/Le_9k_Redditor 2d ago

Do you use a uniform colour space like oklab?

1

u/d_lopez383 1d ago

OKLab can guide the interpolation path, but the fixture's gamut still limits which colors it can produce.

132

u/ktka 5d ago

Sooo HSV is Herpes Simplex Virus, right?

48

u/xzinik 5d ago

No, hsv Simplex virus

25

u/XayahTheVastaya 5d ago

Is that like a cyclical CRC check?

12

u/Hatedpriest 5d ago

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

15

u/lucklesspedestrian 5d ago

Automated ass to mouth machine?

1

u/TingleTangleTom 11h ago

Yes, and penis identification number.

-3

u/Hatedpriest 5d ago

ATM

Automated
Teller
Machine

Get your mind out the gutter

3

u/rsatrioadi 4d ago

*CRC Redundancy Check

1

u/xzinik 15h ago

more like gnu is not unix

0

u/riisen 5d ago

You just wrote:

Cyclical Cyclic Redundancy Check Check

3

u/conundorum 4d 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.)

1

u/xzinik 15h ago

almost, its more like wine is not an emulator

7

u/Complete_Court_8052 5d ago

what does HSV in HSV Simplex Virus stands for?

15

u/Raikojou 5d ago

It stands for HSV Simplex Virus

1

u/TingleTangleTom 11h ago

It stands for Hamburger Sport Verein Simplex Virus.

4

u/Immabed 5d ago

Correct

2

u/Ok-Scheme-913 4d ago

Is it also coming from Stallmann?

insert bottom panel of hello human resources meme

8

u/Arlochorim 5d ago

Holy shit, VIOLET!

4

u/sln1337 4d ago

nah its Hamburger Sport Verein

2

u/seth1299 5d ago

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

54

u/Rialagma 5d ago

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

2

u/adzm 5d ago

Oklabch isn't in there?

16

u/iStumblerLabs 5d ago

No LAB?

7

u/remy_porter 5d ago

LCH is the HSV of CIE.

4

u/dian_01 5d 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 4d 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 5d ago

HSV is good for laymen, scientists give Lab Luv.

1

u/iStumblerLabs 4d ago

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

1

u/eyetracker 3d 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.

10

u/Aksds 5d ago

Hsv

2

u/DaBrumby 5d ago

Came to mention this too

8

u/Boom_Fish_Blocky 1d ago

Meanwhile, people who: Manually inputting hEX codes without a color picker

2

u/TingleTangleTom 11h ago

What do you mean "brown"? I only know #C0FFEE.

1

u/Pleyer757538 6h ago

man i love the color #00FFEE

28

u/boiledbarnacle 5d ago

Actually you get more precision with two valves

45

u/Kaligraphic 5d ago • Bravo

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

4

u/Perfect_Perception 5d ago

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

7

u/1_89 5d ago

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

18

u/Pentium95 5d ago

So.. Is CMYK only the water without pipe?

21

u/friendtoalldogs0 5d ago

CMYK is the drain

12

u/Fidodo 5d 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 5d ago

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

4

u/beegtuna 5d ago edited 5d ago

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

2

u/Clairifyed 5d ago

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

1

u/geek-49 2d ago

CMYK is, fundamentally, RGB but from the viewpoint of a painter instead of a theatrical lighting designer.

8

u/SweetNerevarine 5d ago

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

1

u/TingleTangleTom 11h ago

Basically vapor. (No, what you see is condensed vapor, not vapor.)

4

u/rosuav 4d ago

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

13

u/twpejay 5d 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 4d 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 4d 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 4d ago

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

1

u/l0rb 3d 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 4d ago edited 4d 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.

1

u/a_gomez-298 10h ago

HSV gives you a handy hue knob, but V is just max(R,G,B), not a perceptual brightness scale.

11

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

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

2

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

all we need is know ladies and gentlemen both or neither

4

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

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

3

u/Professional-Goal266 4d 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 4d 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 4d 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 4d 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.

6

u/Fit_Relation8572 5d ago

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

3

u/damaca_ 4d ago

HS vs RG

5

u/Honest_Relation4095 4d ago

Both taps only have 2 adjustable parameters, not 3.

5

u/nosotrosoelcaos 4d ago

Also water is not colors

6

u/Honest_Relation4095 4d ago

Then why are there a blue and a red dot?

4

u/Cynixxx 5d ago

HSV

1

u/yamelnihno 4d ago

Nurderhsv!

2

u/miguescout 5d ago

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

2

u/Old_Ad5084 5d ago

oklch is the best

2

u/s0litar1us 3d 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.

1

u/zzmej1987 4d ago

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

1

u/Mireldorn 3d ago edited 3d 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

-4

u/MekaTriK 4d ago

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

2

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

HSV? The football club?

I think you mean either HSL or HWB

33

u/evenstevens280 5d ago

HSV is a legit colour system

25

u/TheShirou97 5d 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 5d ago

There is HSL and HSV...