Class: AnimateText

AnimateText(text, center, txtheight, color, speed) → {AnimateText}

new AnimateText(text, center, txtheight, color, speed) → {AnimateText}

Constructor for the AnimateText class.
Parameters:
Name Type Description
text ObjectArray
center 2DArray
txtheight int
color RGBAColorArray
speed int
Source:
Returns:
Type
AnimateText

Methods

animateText() → {void}

Displays the text one word at a time.
Source:
Returns:
Type
void

draw(camera) → {void}

Draws the text onto the pass in camera.
Parameters:
Name Type Description
camera CameraObject
Source:
Returns:
Type
void

drawStatic() → {void}

Displays the text instantly.
Source:
Returns:
Type
void