Hello. I know this question has been asked/answered a thousand times on these forums, but my situation is a bit different.
I play a game called EVE oline, and when I'm mining in space I want an alarm to sound when my cargo hold gets full of ore. I originally though ths would be very easy, I just have to check a pixel at the end of my cargo hold capacity bar. When it changes to orange, ring the bell.
However, it was isn't so easy, because not only does this bar have a gradient and a shading, it's also semi transparent. So that means that if my camera angle is over a diferent colored portion of the background, then color will change to a different shade.
Any ideas how I can over come this?