Created
December 16, 2016 18:24
-
-
Save hdennen/ab26103f0037b95d4b96308231b4376e to your computer and use it in GitHub Desktop.
Makes PixiText not blurry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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