Pixels and Subpixels: Turning Electrical States into Light
Billions of electrons sit trapped in microscopic memory cages, or flow rapidly as high and low voltages. But electrons are invisible. To actually see the result of our computing, we have to turn those electrical states into light.
If you bring your eye incredibly close to your screen, or look at it under a magnifying glass, you will see that it is not a smooth, solid picture. It is a massive grid made up of millions of tiny squares called pixels.
Inside every single pixel, there are three microscopic light bulbs (or LEDs): one Red, one Green, and one Blue. By mixing the brightness of these three colors, your screen can trick the human eye into seeing almost any color in the universe.
Figure 1: Close-up structure of an LCD/OLED pixel showing individual R, G, and B subpixel emitters.
From Binary to Voltage: How Bytes Control Light
How does hardware control the brightness of each subpixel? Through byte values (0 to 255). An 8-bit number represents 256 voltage levels: 0 produces zero voltage (completely black), while 255 produces maximum voltage (maximum brightness).
When all three colors emit at maximum brightness (255, 255, 255), the human eye mixes them and perceives pure white. When all three are 0 (0, 0, 0), the screen displays pure pitch black.
Figure 2: Data pipeline from RAM to GPU framebuffer to display controller scanout.