_Zac_ Posted April 13, 2020 Share Posted April 13, 2020 Hello, I have a basic question. Is there a way of getting the raw data from the Textures. For example: new PIXI.Text(this.message, this.textSettings).texure; How do I get the individual pixel data for that texture? I looked through the documentation but I did not find how to get the pixel data. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 13, 2020 Share Posted April 13, 2020 Are you familiar with canvas2d API ? Here are demos that use custom https://github.com/pixijs/pixi.js/wiki/v5-Hacks#pixisprite For Text, source of texture is canvas. You have to call "updateText" before data from canvas becomes available. If that info is not enough for you, well, you have to wait for someone to make you demo exactly for your question. 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.