Re: how to fade in/out image (alpha) in pyglet?

264 views
Skip to first unread message

Andre D

unread,
Nov 13, 2012, 9:43:53 PM11/13/12
to pyglet...@googlegroups.com
Use the sprite class, set the opacity to a value of the sprite object
from 0-255.

On Tue, Nov 13, 2012 at 8:09 PM, Jared Nielsen <nielse...@gmail.com> wrote:
> How do I change the alpha of an image to fade it in and out? No amount of
> Googling or trial and error is leading me to a solution.
>
> I'm new to Python and OpenGL. For a first project I want to incorporate a
> "slide show" of images that fade as they cycle.
>
> Any help is greatly appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyglet-users/-/WF_MP23_78sJ.
> To post to this group, send email to pyglet...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyglet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
Reply all
Reply to author
Forward
0 new messages