JustMe Posted June 13, 2013 Share Posted June 13, 2013 Right now I use canvas's get/putImageData to be able to manipulate pixel coloring images on the fly... concerning pixi/webGL how would you re-color an loaded asset ? Thanks Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted June 13, 2013 Share Posted June 13, 2013 Hi there, Pixi does not do Re-Colouring at the moment but tinting is on the todo list There are ways around this problem though.. what I would suggest for now is you could color the image using canvas as you do and then use the PIXI.Texture.fromCanvas() method to create a new Texture with the coloured image. Quote Link to comment Share on other sites More sharing options...
JustMe Posted June 13, 2013 Author Share Posted June 13, 2013 Hi there, Pixi does not do Re-Colouring at the moment but tinting is on the todo list There are ways around this problem though.. what I would suggest for now is you could color the image using canvas as you do and then use the PIXI.Texture.fromCanvas() method to create a new Texture with the coloured image. I know pixi will have canvas as fallback but I specifically mentioned webGL as re-Colouring pixels hoping to provoke a response to find out if such a thing could be done internally by pixi done by the GPU, rather than the CPU as I am doing right now... Alright, guess I have to be patient then 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.