Hello!

I have been using pyglet for a bit with no transparency issues with
PNG. That is, when I create a Sprite from a PNG with transparency,
everything works as expected. However I am not having the same luck
with some GIFs that I have, which according to GIMP and everything
else I can use, have a transparent background.

I've attached a short demo that shows the issue, where the Sprite does
not have a transparent background. Any tips on what I am doing wrong?

And as a sub question, how do you have mouse cursors with transparency
since you can't use a Sprite as a cursor, but only an image?

Thanks so much, if anyone knows this I'd love an answer so I can make
my pyweek entry much better :) Good luck to fellow pyweek
participants!
-- 
Michael Rooney
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

import pyglet

win = pyglet.window.Window(width=50, height=50)
pyglet.gl.glClearColor(0, 0, 1, 1)

image = pyglet.resource.image("Tomato.gif")
sprite = pyglet.sprite.Sprite(image)

@win.event
def on_draw():
    win.clear()
    sprite.draw()

pyglet.app.run()

<<inline: Tomato.gif>>

Reply via email to