Spirit Posted August 6, 2020 Share Posted August 6, 2020 Hello there I was wandering weather its possible to perform good old CSS trick "background-clip: text;" on PIXI.TEXT, to achieve effect of a text which has a picture/texture fill instead of a color. Something like this:https://codepen.io/Jintos/pen/crlxk Thanks for any hints ✌️ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 6, 2020 Share Posted August 6, 2020 use Text as a mask. IUf you need more than text - that border for example - you should draw it in renderTexture together with text, and use sprite with this texture as a mask Quote Link to comment Share on other sites More sharing options...
Spirit Posted August 7, 2020 Author Share Posted August 7, 2020 Thank you for the answer Would you be so nice and show me a simple example how do i do what you suggest? Im new to PIXI and I am unable to figure out what you mean by "use text as a mask". 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.