Find White Pixel

Hi. I’am trying to make something like this: I want to find if there are any white pixels on a screen, and if it’s true, I want to color everything (all the pixels) green, and if there are only black pixels, I want to color everything red.
I have a multiply node with two inputs, that gives black color by default, but when dot in a center crosses circle, some pixels become white, so I want to color everything green when even one pixel is white. For now, it colors white pixels to green and black pixels to red.
Maybe I should use “for” node, but I can’t find it.

Sorry for bad English.

Hi,

try this:

Cheers