I have an image and loop through each pixel of it.
I need to identify the color of the pixel:
- It's a light or dark color;
- And the tonality of it (for example if it is bluish or reddish, greenish, etc ...).
I'm using the RGB values as a basis, but I'm not having good results. For example:
A tone of any red, then the larger the number of R in the RGB system the lighter the color is. But this varies greatly from color to color.
if (Color.DarkRed.R > 160) { // É um tom claro.}
Thank you in advance!