
import { Color }  from '../../../../three.js/src/Three.js';
import { Colours } from './Colours.js';

// define colors to share THREE.Color objects

function createCache ( colours ) {

	var cache = [];

	for ( var i = 0, l = colours.length; i < l; i++ ) {

		cache[i] = new Color( colours[i] );

	}

	return cache;

}

export var ColourCache = {
	inclination: createCache( Colours.inclinationColours ),
	terrain:     createCache( Colours.terrainColours ),
	gradient:    createCache( Colours.gradientColours ),
	survey:      createCache( Colours.surveyColours ),
	red:         new Color( 0xff0000 ),
	white:       new Color( 0xffffff ),
	grey:        new Color( 0x444444 )
};

@@ -592,16 +592,53 @@
 0000 ),%0A
+%09yellow:%09     new Color( 0xffff00 ),%0A
 %09white: 

add new colour