Computer Color is Broken
Channel:minutephysics · Length:4:14 · Published:2015-03-20 · Views:4278904
Summary
MinutePhysics explains that computers store brightness nonlinearly, so blurring and blending colors in raw RGB gives wrong, dark results. It shows why mixed colors, such as in gradients, look off.
Why HN recommends it
HN cites it as the accessible go-to explanation of gamma and color blending errors in image programs.
I found minutephysics' treatment of this subject to be really pleasant and easy to grok. — HN, 2026
Graphic design & typography · Computer graphics & rendering
Subtitles (excerpt)
If you put a colorful image into photoshop or instagram and blur it, you’ll see a weird, dark boundary between adjacent bright colors. Yuk! In the real world, out of focus colors blend smoothly, going from red to yellow to green – not red to brown to green! This color blending problem isn’t limited to digital photo blurring, either – pretty much any time a computer blurs an image or tries to use transparent edges, you’ll see the same hideous sludge. There’s a very simple explanation for this ugliness – and a simple way to fix it. It all starts with how we perceive brightness. Human vision, like our hearing, works on a relative, roughly logarithmic scale: this means that flipping from one light to two changes the percieved brightness a TON more than going from a hundred and one to a hundred and two, despite adding the same physical amount of light. Our eyes and brains are simply better at detecting small differences in the absolute brightness of dark scenes, and bad at detecting the same differences in bright scenes. Computers and digital image sensors, on the other hand, detect brightness purely based on the number of photons hitting a photodetector – so additional photons register the same
On Hacker News
For those interested in this topic, I found minutephysics' treatment of this subject to be really pleasant and easy to grok. I had a talk I gave at work once or twice discussing color conversion and I would play a 90 second snippet from this (attributed appropriately) as it would very quickly crash course people on the reasoning behind an EOTF in a really cute and layman's terms kind of way: [VID… — joedrago, 2026-06
> The final piece of the puzzle is gamma correction. Applying gamma correction to these RGB coordinates produces a new set of values which we call (R', G', B') that are related to the original by a transfer function 6 ... The reason this is done is to account for how our eyes perceive brightness nonlinearly. We can distinguish changes in dark shades much more easily than light shades because a li… — quietbritishjim, 2026-02
I misunderstood what you mean. Please ignore. On a side note, by colorspace I mainly meant that we can just stick with one with ultra-wide gamut. There are indeed other reasons to have different color spaces. (Below is my original comment for transparency.) ------------- Gamma isn't really about CRT; or I should say, they're two different things. The fact CRT has a somewhat physical "gamma" (ligh… — fireattack, 2021-01
If we're on the "watch this YouTube video if you work with colours" train, here's a great explanation of why gradients usually have a dark band in the middle, on the MinutePhysics channel: [VIDEO] In short: the RBG values in an image are not actually the intensity of light, but some nonlinear function of intensity. To do a weighted average of two colours you need to first undo that nonlinearity, … — quietbritishjim, 2020-02
Good reminder about these persisting blending issues in the linear interpretation of RGB values, which was well explained to non-coders as well here in a quite popular MinutePhysics video: [VIDEO] As others commented the gamma scaling issues seem even more relevant. Just please, don't use RGB color space for generating gradients. In fact, it's ill fitted for most operations concerning the percept… — mxfh, 2016-09
Related videos
- Beats That Defy Boxes | Reggie Watts | TED · TED · 9:44
- Why is TV 29.97 frames per second? · Stand-up Maths · 14:27
- 3D Gaussian Splatting! - Computerphile · Computerphile · 17:39
- A Better Default Colormap for Matplotlib | SciPy 2015 | Nathaniel Smith and Stéfan van der Walt · Enthought · 19:08
- Why Hershey bars taste like vomit (and I love them) · Adam Ragusea · 13:47
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- The Continuity of Splines · Freya Holmér · 1:13:50
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Painting a Character with Maths · Inigo Quilez · 24:46
- The Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013) · Mladen Mijatov · 45:35
- A Deep Dive into Nanite Virtualized Geometry · SIGGRAPH Advances in Real-Time Rendering · 1:09:59
- Siggraph2019 Geometric Algebra · Bivector · 1:37:21
- Brown; color is weird · Technology Connections · 21:14
- I painted a Landscape with Mathematics · Inigo Quilez · 42:00
- Stephen Fry Kinetic Typography - Language · Built By Matt · 6:34
- Elevated by RGBA and TBC · BUTTONTANG · 3:36