How would you determine from the RGB values the lightness of a pixel?
How would you determine from the RGB values the lightness of a pixel?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
By using this formula (assuming you have an RGB to work with)
Luminance == (RED * 0.3) + (GREEN * 0.59) + (BLUE * 0.11)