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

[pygame] Questions about surface with alpha channel



Hi,
I have a couple of questions regarding surfaces with an alpha channel.

1. Is this the correct way of creating an surface with an
alhpa-per-pixel channel?
surface = pygame.Surface((w, h), pygame.SRCALPHA)

2. How do you clear an alpha channel surface? I guesss you can't use the
fill method?

Best Regards
/John