I am trying to create a tiled texture from a small base image (I'm using a 
small beam image and want to tile it along x direction to produce a long 
beam).

The code I am using to do this is as follows:

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

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

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

sprite = pyglet.sprite.Sprite(beamTiledImage)

However, this gives me the original image intact. Am I doing something 
wrong? Is this the entirely wrong way to go about it?

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