Skip to content
Josh Stovall edited this page Dec 3, 2020 · 1 revision

Text()

Create 3D text.

var options = {
   text: 'hello world',
   size:  15,
   thick: 20,
   color: '#FF0000'
}

new XR.Text(options);

See the live demo.

Parameters

Name Type Default Options Description
text string text to show
thickness float 1 font thickness
color color white color of text
font json file font style to use
segments int mesh segments
size float 1 size of text
bevel bool true rounded edges
Clone this wiki locally