Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function initText(x, y) {
const text = new PIXI.Text("", {
fontFamily,
fontSize: 14,
fill: "white"
});
text.x = x;
text.y = y;
screen.addChild(text);
return text;
}
_create(container) {
let labelStyle = new TextStyle({
fontFamily: 'Arial',
fontSize: 15,
fill: '#000000'
});
this._label = new Text("clock", labelStyle);
this._label.x = 10;
this._label.y = 600 - 20;
container.addChild(this._label);
}
_create(container) {
let labelStyle = new TextStyle({
fontFamily: 'Arial',
fontSize: 15,
fill: '#000000'
});
this._label = new Text("clock", labelStyle);
this._label.x = 10;
this._label.y = 600 - 20;
container.addChild(this._label);
}
_create(container) {
let labelStyle = new TextStyle({
fontFamily: 'Arial',
fontSize: 12,
fill: '#00ff00'
});
this._label = new Text("clock", labelStyle);
this._label.x = 5;
this._label.y = 5;
container.addChild(this._label);
}