[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] image & sprite module



On Sun, 20 Oct 2002 10:14:36 -0700
Pete Shinners <shredwheat@attbi.com> wrote:

> i'm not sure how surfarray is helping you here. it seems you are using it
> to clear the previous image? if so a call to "fill()" would work faster.
> but you can do it this way without any filling or clearing. set no colorkey
> on the "imagedef" and the correct one on "image". this code should have
> identical results and run a little cleaner

oh, yes I've totally understand your idea, I only wanted to ask you the 
faster way :) 

However, I want to ask you a final question, how can I know whether a surface 
is totally fill with the same color without quering all the pixels?

thank you
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org