2
I have an image and loop through each pixel of it.
I need to identify if the pixel color:
- It is a light or dark color;
- And the hue of it (for example if it is bluish or reddish, greenish, etc...).
I’m using the RGB values as a basis but I haven’t been getting good results.
For example:
Any shade of red, the higher the R number in the RGB system the lighter the color is. But this varies a lot from color to color.
if (Color.DarkRed.R > 160) { // É um tom claro.}
Thank you in advance!