src/color.js
/*
 * Convert a color to a packed uint32.
 */
Convert a color to a packed uint32.
Convert a color to a packed uint32 .
function toU32(color) {
	return (u8(color[3]) << 24) | (u8(color[2]) << 16) |
		(u8(color[1]) <<  8) | u8(color[0]);
}
function toU32 ( color ) { return ( u8 ( color [ 3 ] ) << 24 ) | ( u8 ( color [ 2 ] ) << 16 ) | ( u8 ( color [ 1 ] ) << 8 ) | u8 ( color [ 0 ] ) ; }
Convert a color to a packed uint32.
Convert a color to a packed uint32 .
/* FIXME: broken on big endian */