system/output/renderer/canvas2d.js
function() {
		var color = 0,
		    i = 0,
		    address = 0,
		    view = palette,
		    buffer = new ArrayBuffer( 0xc0 ),
		    splitPalette = new Uint8Array( buffer );

		// first, re-arrange RGB values in a single array (first reds, then blues, then greens)
		for ( color = 0; color < 3; color +=1 ) {
			for ( i = 0; i < 192; i += 3 ) {
				splitPalette[ address ] = view[ i + color ];
				address += 1;
			}
		}

		// then, make color values separately available in separate arrays:
		this.palette = view;
		this.reds = new Uint8Array( buffer, 0, 0x40 );
		this.greens = new Uint8Array( buffer, 0x40, 0x40 );
		this.blues = new Uint8Array( buffer, 0x80, 0x40 );
	}
function() {
		var color = 0,
		    i = 0,
		    address = 0,
		    view = palette,
		    buffer = new ArrayBuffer( 0xc0 ),
		    splitPalette = new Uint8Array( buffer );

		// first, re-arrange RGB values in a single array (first reds, then blues, then greens)
		for ( color = 0; color < 3; color +=1 ) {
			for ( i = 0; i < 192; i += 3 ) {
				splitPalette[ address ] = view[ i + color ];
				address += 1;
			}
		}

		// then, make color values separately available in separate arrays:
		this.palette = view;
		this.reds = new Uint8Array( buffer, 0, 0x40 );
		this.greens = new Uint8Array( buffer, 0x40, 0x40 );
		this.blues = new Uint8Array( buffer, 0x80, 0x40 );
	}
function ( ) { var color = 0 , i = 0 , address = 0 , view = palette , buffer = new ArrayBuffer ( 0xc0 ) , splitPalette = new Uint8Array ( buffer ) ; // first, re-arrange RGB values in a single array (first reds, then blues, then greens) for ( color = 0 ; color < 3 ; color += 1 ) { for ( i = 0 ; i < 192 ; i += 3 ) { splitPalette [ address ] = view [ i + color ] ; address += 1 ; } } // then, make color values separately available in separate arrays: this . palette = view ; this . reds = new Uint8Array ( buffer , 0 , 0x40 ) ; this . greens = new Uint8Array ( buffer , 0x40 , 0x40 ) ; this . blues = new Uint8Array ( buffer , 0x80 , 0x40 ) ; }
Initialize palette for video output.
Initialize palette for video output .