get color for a given x , y using RGBA

hi, how can i get the color for a given x ,y in the window ?? is there any function that could do this ???

glReadPixels is what you’re looking for.