I am trying to take a tiny image (a portion of a beam/ray) and tile it 
along x direction to get a long beam texture.

The way I am doing it is:

baseImage = pyglet.resource.image("beam.png")

beamTiledImage = pyglet.image.TileableTexture.create_for_image(baseImage)

beamTiledImage.blit_tiled(0.0, 0.0, 0.0, 300, 0)

beamSprite = pyget.sprite.Sprite(self.beamTiledImage)  

However this just shows me the base image as is. Can someone please tell me 
what I am doing wrong? Is this completely wrong way of going about this?

-- 
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/-/zPfMv2wxMawJ.
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