ok imagine that my entire screen was blue and one pixel was red. how can i find this pixel?

is there a way to scan through every pixel then when the pixel u want is found , store its location in a variable?



thanks