|
Re: fade out surfaces: msg#00191python.pygame
Hello Peter, Thanks for all your help on this. It works for me ... kind of! I call each it frame like thus: s.alpha -= 5 #or sometimes s.alpha += 5 multiply_alpha(s.image, s.alpha) draw(s.image) Except it doesn't seem to work as expected. I think because your compact code only fades out, not fade in. It does this by shifting the alpha array to the right?!? I really don't know how your code works!!! :) Which really impresses me! Thanks, Luke On 21/09/05, Peter Shinners <pete-eNbnrwMA38Zg9hUCZPvPmw@xxxxxxxxxxxxxxxx> wrote: > 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> |
|---|---|---|
| Previous by Date: | Re: OpenGL? problems in Linux with pyweek games.: 00191, Adam |
|---|---|
| Next by Date: | Re: OpenGL? problems in Linux with pyweek games.: 00191, Mike C. Fletcher |
| Previous by Thread: | Re: fade out surfacesi: 00191, Peter Shinners |
| Next by Thread: | Re: fade out surfaces: 00191, Peter Shinners |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |