Need a Pixi Text Sample

I'm in the point in my MV project where I have the need to put some artstyle text on the screen. Things like "Choose a Character" or "Roll for Initative" and things like that. I know that Poryg has a Video Tutorial on how to use Pixi.Text as a replacement of using text in a graphics file, but is there anyone who made a more extensive text-based walkthrough that I can read and follow along on my browser. My brain doesn't work well with having to play, stop, and rewind a Youtube Video.

Once I find out how the basics behind Pixi.Text, I can figure out and experiment on certain effects I'd like to include in my game.

Thanks in advance.
I am making a website for text based tutorials, but it will still take me a bit, because I have to solve problems that shouldnt even be there (the website requests files that it is not even supposed to request. since my scripts don't request them anymore). However, a text sample could be here.

https://pixijs.github.io/examples/#/basics/text.js

For a text you use a function with two params, one mandatory and one optional:
text = new PIXI.Text (text, style)
if you need to change the text, you can use text.text = "whatever text"

As for style, you will understand quickly once you see it. Just note if you want to use the game font, you need to use fontFamily: "GameFont". And for a fill you can use as many colors as you want, not just one.
I know how to add fonts to the game using the font.css file in the Fonts directory, something I might need to do anyway. I also know how to edit Styles a la CSS.

Let me talk through what I understand about PIXI.Text so far, and you can correct me if I'm off.

From what I found in the video, I can put this part in a pixiStyles.js file:

var stylename = new PIXI.TextStyle({
fontFamily: 'Arial',
fontSize: 36,
fontStyle: 'italic',
fontWeight: 'bold',
fill: ['#ffffff', '#00ff99'], // gradient
stroke: '#4a1850',
strokeThickness: 5,
dropShadow: true,
dropShadowColor: '#000000',
dropShadowBlur: 4,
dropShadowAngle: Math.PI / 6,
dropShadowDistance: 6,
wordWrap: true,
wordWrapWidth: 440
});

And then use in a Script Command in the event editor:

textname = new PIXI.Text('Basic text in pixi', stylename)
SceneManager._scene.addchild(textname)

And I can have different 'stylename's and 'textnames' for different Artistic Texts, right?

And I can also get a bit used to Object Oriented Coding, because each 'textname' has their own....settings, as I see it. Using Script Calls, I can do the following:

textname.alpha = x (To set a 'textname's visibility of opacity, the X being anywhere between 0 (fully off) to 1 (fully on)
textname.x = the X Coordinate where the text begins
textname.y = the Y Coordinate
textname.scale.x = the x scale, where the set number is multiplied to the normal width of the text
textname.scale.y = the y scale, where it's multiplied to the normal height

With these settings, I can move the Artistic Text around, correct me if i'm wrong.

I haven't fully understand textname.rotation yet, but that will come later.
Code:
textname = new PIXI.Text('Basic text in pixi', stylename)
SceneManager._scene.addChild(textname) // you had a small c, but needs to be capital

Else everything is absolutely correct. You can use different styles for different texts. You just cannot use multiple styles with one text.
And you can manipulate each text's properties individually, exactly because of object oriented programming. You can find all things you can manipulate in the console.

As for textname.rotation, it is one full cycle every 6.25 or something.
I'll figure that out as I experiment.

On the CSS, would it be possible to have the style be set so that the text is in a box, (such as using border, background, and what not?) Or do you need to use PICI draw for that?
I don't know anything about CSS, so cannot answer this one, but I don't see a reason why you shouldn't be.

Original thread: https://forums.rpgmakerweb.com/threads/need-a-pixi-text-sample.86284/