src/color.js
/*
 * Convert a hexadecimal value to a color vector.
 */
Convert a hexadecimal value to a color vector.
Convert a hexadecimal value to a color vector .
function hex(x) {
	var s = 1 / 255;
	return vec4.fromValues(
		s * ((x >> 16) & 0xff),
		s * ((x >> 8) & 0xff),
		s * (x & 0xff),
		1);
}
function hex ( x ) { var s = 1 / 255 ; return vec4 . fromValues ( s * ( ( x >> 16 ) & 0xff ) , s * ( ( x >> 8 ) & 0xff ) , s * ( x & 0xff ) , 1 ) ; }
Convert a hexadecimal value to a color vector.
Convert a hexadecimal value to a color vector .