5alidshammout Posted December 21, 2021 Share Posted December 21, 2021 I have this canvas, I want to repeat this texture down till the end of the canvas, how do I do that? here is my code: let middle = new PIXI.Sprite( PIXI.Loader.shared.resources[ folder + 'environment/layers/middle.png' ].texture ); middle.position.y = app.screen.height - middle.height; Quote Link to comment Share on other sites More sharing options...
Exca Posted December 21, 2021 Share Posted December 21, 2021 You can use tilingSprite. https://pixijs.download/dev/docs/PIXI.TilingSprite.html 5alidshammout 1 Quote Link to comment Share on other sites More sharing options...
5alidshammout Posted December 22, 2021 Author Share Posted December 22, 2021 thanks @Exca Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.