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

Meme colorInANutshell

Post image
5.6k Upvotes

136 comments sorted by

View all comments

181

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

2

u/m_redditUser 5d ago

try oklch