On Sun, Oct 18, 2009 at 9:53 AM, sticksen <[email protected]> wrote:

>
> Hey,
>
> I´m searching for a way to get a smooth transition from one pic to
> another. Like blending the old pic slowly to black and then blending
> in the new pic. Or simply blending the old pic to the new pic.
>
> It would be easy to just draw the pics back-to-back with a different z-
> value and then slowly altering the alpha value of the front pic. I
> searched for some kind of function, with which I can manipulate a pic
> ´s alpha value, but didn´t find anything.
>
> Can somebody give me a hint on how to do this? Or other methods to
> fade one pic to another?
>
> Cheers,
> Marc
>
>


 You can use pyglet.sprite.Sprite to handle the images, and use the property
.opacity to control the alpha. ( int, 0..255)

--
claudio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to