crowbar Posted March 29, 2015 Share Posted March 29, 2015 Why is putImageData() not avaliable for WebGL in PIXI? Is there an alternative way to use this? I want to draw to a texture one pixel at a time.Much Thanks, Jordan Quote Link to comment Share on other sites More sharing options...
xerver Posted March 29, 2015 Share Posted March 29, 2015 Draw to a canvas and use that as a texture for a sprite:var canvas = document.createElement('canvas');// ...draw on canvasvar texture = PIXI.Texture.fromCanvas(canvas), sprite = new PIXI.Sprite(texture);I don't ever recommend drawing directly to the renderer context, because that will not work cross renderer. Quote Link to comment Share on other sites More sharing options...
crowbar Posted March 30, 2015 Author Share Posted March 30, 2015 Perfect, thank you so much! 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.