PDA

View Full Version : PyGame Question



sekinto
May 5th, 2008, 04:28 AM
Given cordinates (x,y) is there a way to check what color is drawn at (x,y) using Python+Pygame?

tamoneya
May 5th, 2008, 04:29 AM
http://www.pygame.org/docs/ref/surface.html#Surface.get_at
This can be used on any surface.

sekinto
May 5th, 2008, 04:44 AM
Thank you. It worked.

tamoneya
May 5th, 2008, 04:46 AM
out of curiosity, what are you coding?