code: function initColors() {
  	var low, high,
  	    result = new Uint8Array( 0x1000000 );
  
  	for ( low = 0; low < 0x100; low++ ) {
  		for ( high = 0; high < 0x100; high++ ) {
  			addTile( low, high );
  		}
  	}
  
  	return result;
  
  	function addTile( low, high ) {
  		var colorLow, colorHigh, color,
  		    offset = ( low << 16 ) | ( high << 8 );
  
  		for ( var i = 0; i < 8; i++ ) {
  			colorLow = ( low & 1 );
  	    	colorHigh = ( high & 1 ) << 1;
  	    	color = ( colorHigh | colorLow );
  
  			result[ offset + i ] = color;
  
  			low >>= 1;
  	    	high >>= 1;
  		}
  	}
  }
docs: Initialize lookup table for getColors().