lilsheep Posted June 30, 2015 Share Posted June 30, 2015 var name_text = new PIXI.Text(name);name_text.style.font = "bold 10px arial";name_text.style.align = "center";this.imageContainer.addChild(name_text); How do I change the color ! aaa Quote Link to comment Share on other sites More sharing options...
xerver Posted June 30, 2015 Share Posted June 30, 2015 http://pixijs.github.io/docs/PIXI.Text.html#tint Quote Link to comment Share on other sites More sharing options...
lilsheep Posted July 1, 2015 Author Share Posted July 1, 2015 I tried that! name_text.tint = "0xaabbcc" name_text.tint = 0xaabbccname_text.tint = [oxaabbcc] I can't get it to work. ) : Quote Link to comment Share on other sites More sharing options...
xerver Posted July 1, 2015 Share Posted July 1, 2015 Sorry, you are probably looking for style: http://pixijs.github.io/examples/index.html?s=basics&f=text.js&title=Text Quote Link to comment Share on other sites More sharing options...
meduzo Posted November 24, 2016 Share Posted November 24, 2016 I know this is old, but here's the answer, hope it helps someone. //This changes yourTextField's color to green yourTextField.style.fill = 0x00FF00; Quote Link to comment Share on other sites More sharing options...
enricosapicco Posted November 25, 2016 Share Posted November 25, 2016 yourText.style = {fill: 0xffffff} or yourText.style = {fill: 0xred} also @meduzo's suggestion is valid in the same way. Quote Link to comment Share on other sites More sharing options...
Jammy Posted March 30, 2017 Share Posted March 30, 2017 On 2016-11-24 at 11:28 PM, meduzo said: I know this is old, but here's the answer, hope it helps someone. //This changes yourTextField's color to green yourTextField.style.fill = 0x00FF00; cheers dude 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.