Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(text) {
super();
this.color = new Color(1, 1, 1);
this.text = new SpriteText(text, 1, `#${this.color.getHexString()}`);
this.add(this.text);
}