Concepts
The Colour Picker relies on five key concepts working together. Let's break each one down.
1. Reading in RGB
Just like mixing primary paint colors in art class, computers mix light to create colors. The sensor breaks light into three channels:
Try It!
2. Auto-Ranging
The Pupil Analogy
"Think about walking from a bright sunny yard into a dark movie theater. At first you cannot see anything, but then your pupils dilate to let more light in. The Colour Picker does the exact same thing!"
The "Auto Range" function checks the ambient light. If it is too dark, it turns up the sensor's sensitivity. If it is too bright, it turns the sensitivity down so the sensor is not blinded. This happens automatically before every scan.
3. Statistical Filtering (The Trimmed Mean)
Why does the computer take five snapshots instead of just one? Because sensors glitch. A speck of dust or a quick shadow might mess up a reading.
Sort all 5 readings from smallest to largest
Throw away the highest and lowest values
Average the remaining 3 for a clean result
Key Takeaway
4. Gamma Correction
Camera vs Human Eye
"Cameras and sensors measure light in a perfectly straight, mathematical line. If there is twice as much light, the sensor reads a number twice as big. But human eyes do not work like that — we are much more sensitive to changes in dark shadows than changes in bright sunlight."
"Gamma Correction" is a mathematical curve applied to the sensor's numbers to bend them so they perfectly match how the human brain perceives light. Without it, the colors on your screen would look entirely wrong.
Note
5. Saturation Boosting
Sometimes, electronic sensors pick up extra light that washes out the colors, making a bright red apple look a bit gray or pink. The program takes the washed-out color, finds its core hue, and artificially turns up the "volume" of that color.
Key Takeaway
The Full Pipeline
Auto-Range adjusts the sensor → Trimmed Mean cleans the data → Gamma Correction translates for human eyes → Saturation Boost makes colors pop → RGB/HEX output ready to use!