grab color from window

how can i get a color from the window?

In processing i can use:

color c = get(mouseX, mouseY);  

I’m looking for something similar for OF but i can’t find it.

You can use the grabScreen method from the ofImage class. Then the getPixel method to get the pixel you want.