How to use the pixi.js.Text function in pixi

To help you get started, we’ve selected a few pixi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abagames / pixel-art-gen / src / samples / vader.ts View on Github external
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;
}
github jamro / jsbattle / packages / jsbattle-engine / src / engine / renderers / bw / BWClockView.js View on Github external
_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);
  }
github jamro / jsbattle / packages / jsbattle-engine / src / engine / renderers / brody / BrodyClockView.js View on Github external
_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);
  }
github jamro / jsbattle / packages / jsbattle-engine / src / engine / renderers / debug / DebugClockView.js View on Github external
_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);
  }

pixi

Super fast 2D rendering engine for browserify, that uses WebGL with a context 2d fallback.

MIT
Latest version published 9 years ago

Package Health Score

45 / 100
Full package analysis