logo       

Re: fade out surfaces: msg#00186

python.pygame

Subject: Re: fade out surfaces

On Sun, 2005-09-18 at 09:33 +1000, Luke Miller wrote:
> alpha = pygame.surfarray.pixels_alpha(surf)
> ValueError: unsupport colormasks for alpha reference array

It looks like your Surface uses a colorkey, not perpixel alphas. In that
case just use Surface.set_alpha(value). No need for a custom function.






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise