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

Re: [pygame] easy way to check pygame.Color() equality?



How so, or what do I need to watch? Meaning is it safe for now to do?:

if self.color == pygame.Color("red"): print 'same color!'

On Wed, Jan 14, 2009 at 5:44 AM, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
On, Mon Jan 12, 2009, Lenard Lindstrom wrote:

> Color equality was an oversight I corrected in Pygame 1.9.0.

In pgreloaded it's implemented differently, so watch your comparisions
in case you use it.

Regards
Marcus




--
Jake