Anyone knows how to get the current color at the cursor point? And I don't mean just for my application but for desktop and other applications too. There must be an API somewhere for this.

I am using p.set to get the current color for my application.