[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] get coluor of a sprite



Gonzalo Castro wrote:
What function may I use to get the colour of a sprite?

Very easy. Use Surface.get_at((x, y)) where x and y equals the pixel in the surface you want to check the color of.

http://www.pygame.org/docs/ref/surface.html#Surface.get_at