src/text.js
/*
 * Layout object for a single block of text.
 *
 * The 'position' and 'color' attributes can be animated with tweens.
*/
Layout object for a single block of text.
The 'position' and 'color' attributes can be animated with tweens.
Layout object for a single block of text . The ' position ' and ' color ' attributes can be animated with tweens .
function Layout(arg) {
	this._parent = null;
	this._data = null;
	this._i16 = null;
	this._u32 = null;
	this._count = 0;
	this._capacity = 0;
	this._glyphs = [];
	this._gadv = [];
	this._xoff = 0;
	this._yoff = 0;
	this._color = null;
	this.position = vec2.create();
	this.color = vec4.fromValues(1, 1, 1, 1);
	if (arg) {
		if (arg.position) {
			vec2.copy(this.position, arg.position);
		}
		if (arg.color) {
			vec4.copy(this.color, arg.color);
		}
	}
}
function Layout ( arg ) { this . _parent = null ; this . _data = null ; this . _i16 = null ; this . _u32 = null ; this . _count = 0 ; this . _capacity = 0 ; this . _glyphs = [ ] ; this . _gadv = [ ] ; this . _xoff = 0 ; this . _yoff = 0 ; this . _color = null ; this . position = vec2 . create ( ) ; this . color = vec4 . fromValues ( 1 , 1 , 1 , 1 ) ; if ( arg ) { if ( arg . position ) { vec2 . copy ( this . position , arg . position ) ; } if ( arg . color ) { vec4 . copy ( this . color , arg . color ) ; } } }
Layout object for a single block of text.
Layout object for a single block of text .
// Values currently baked into the array // Values specified by the user