Detecting color where the mouse cursor click

Thank you.
this is the answer.