Skip to content

Instantly share code, notes, and snippets.

@hdennen
Created December 16, 2016 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdennen/ab26103f0037b95d4b96308231b4376e to your computer and use it in GitHub Desktop.
Save hdennen/ab26103f0037b95d4b96308231b4376e to your computer and use it in GitHub Desktop.
Makes PixiText not blurry
export class myText extends PixiText {
constructor(text, style) {
super(text, style);
this.fontSize = style.fontSize * PIXI.RESOLUTION * 2;
// add other size properties
this.scale.set(0.5, 0.5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment