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

Re: [pygame] Transparent surfaces



On 4/27/05, Daniel Dornhardt <frozensound@xxxxxx> wrote:
> image = pygame.Surface([640,480], SRCALPHA, 32)
> #image.fill([0,0,0,0])
> #image.convert_alpha()

Note that convert_alpha doesn't modify the surface itself, but
produces a new copy of it that's optimized for alpha blitting. So,

image = image.convert_alpha()

-- 
Sami Hangaslammi