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

Re: [pygame] 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.