A string of text that can be rendered on screen.
new Text(scene, config);
scene—SceneThe scene this Object is a part of.config—ObjectTheText's config object.config.x—numberThisTextobject's x-coordinate.config.y—numberThisTextobject's y-coordinate.config.maxWidth—numberThe maximum width of theText. Defaults toRenderer.width.config.value—stringThe text to display. (use"\n"for newlines)config.wrap—booleanWhether to wrap the text if it overflows the screen.config.color—stringOptional text color.config.backgroundColor—stringOptional background color.config.fontWeight—stringOptional font weight.
The string value of the text object.
Get the PixelMesh renderable representation of the text.