pygame: transparency question



Hello,

I have a surface that I load an image onto. During a collision I would like to clear out the images of both surfaces that collided and show the score. Is there a function call to clear a surface with an image?

One way I was thinking was to fill the surface with a color and then set that color as the colorkey. Is this the only way or does pygame have a function to make the whole surface transparent?

Thanks.
.



Relevant Pages

  • Re: The Right Collection for the Job
    ... I could probably be incorrect, but I am thinking worse case scenario is ... a collision, and using the above formula with default load factor I get ...
    (microsoft.public.dotnet.languages.csharp)
  • [kde] Running a pygame application
    ... when i run a Pygame application, the Xorg ... process suddenly increase is load until 50 % instead of 3-5% when i do ... Archives: http://lists.kde.org/. ...
    (KDE)