- Hide quoted text -- Show quoted text -
> 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?
In other words, I don't think that command modifies the "image" part
of the TileableTexture object itself, which is what it appears you
expected since you are putting that texture into a sprite.