Class: Label

Label(textIn, colour) → {Label}

new Label(textIn, colour) → {Label}

Bitmap labels, this is used with Glyph to provide labels.
Parameters:
Name Type Description
textIn String Text to be displayed dwith the label.
colour THREE.Color Colour to be set for the label.
Author:
  • Alan Wu
Source:
Returns:
Type
Label

Methods

dispose()

Free up the memory
Source:

getPosition() → {Array}

Get the current position in an array containing the x, y and z coordinates.
Source:
Returns:
Type
Array

getSprite() → {THREE.Sprite}

Get the intrnal sprite.
Source:
Returns:
Type
THREE.Sprite

getString() → {String}

Get the text.
Source:
Returns:
Type
String

setColour(colour)

Set the colour of the label
Parameters:
Name Type Description
colour THREE.Color colour to be set
Source:

setPosition(x, y, z)

Set the position of the label in 3D coordinates.
Parameters:
Name Type Description
x Number x coordinate to be set.
y Number y coordinate to be set.
z Number z coordinate to be set.
Source:

setScale(scaling)

Scale the label.
Parameters:
Name Type Description
scaling Number Scale to be set.
Source: