private static function index() {

		$colors = ColorList :: get('colors');

		foreach($colors as $hex => $color) {

			$rgb = static :: rgb($hex);
		  	$hsl = static :: hsl($hex);

		  	$shade = ColorList :: get(['shades', $color['s']]);
		  	$base  = ColorList :: get(['base', $shade['b']]);

			static :: $list[$hex] = (object) [
				
				'r' => $rgb -> r,
				'g' => $rgb -> g,
				'b' => $rgb -> b,
				'h' => $hsl -> h,
				's' => $hsl -> s,
				'l' => $hsl -> l,
				'hex' => $hex,
				'title' => $color['t'],
				'shade' => (object) [

					'id' => $color['s'],
					'hex' => $shade['h']
				],
				'base' => (object) [

					'id' => $shade['b'],
					'hex' => $base['h'],
					'title' => $base['t']
				]
			];
		}
	}
private static function index() {

		$colors = ColorList :: get('colors');

		foreach($colors as $hex => $color) {

			$rgb = static :: rgb($hex);
		  	$hsl = static :: hsl($hex);

		  	$shade = ColorList :: get(['shades', $color['s']]);
		  	$base  = ColorList :: get(['base', $shade['b']]);

			static :: $list[$hex] = (object) [
				
				'r' => $rgb -> r,
				'g' => $rgb -> g,
				'b' => $rgb -> b,
				'h' => $hsl -> h,
				's' => $hsl -> s,
				'l' => $hsl -> l,
				'hex' => $hex,
				'title' => $color['t'],
				'shade' => (object) [

					'id' => $color['s'],
					'hex' => $shade['h']
				],
				'base' => (object) [

					'id' => $shade['b'],
					'hex' => $base['h'],
					'title' => $base['t']
				]
			];
		}
	}
private static function index ( ) { $ colors = ColorList :: get ( 'colors' ) ; foreach ( $ colors as $ hex => $ color ) { $ rgb = static :: rgb ( $ hex ) ; $ hsl = static :: hsl ( $ hex ) ; $ shade = ColorList :: get ( [ 'shades' , $ color [ 's' ] ] ) ; $ base = ColorList :: get ( [ 'base' , $ shade [ 'b' ] ] ) ; static :: $ list [ $ hex ] = ( object ) [ 'r' => $ rgb -> r , 'g' => $ rgb -> g , 'b' => $ rgb -> b , 'h' => $ hsl -> h , 's' => $ hsl -> s , 'l' => $ hsl -> l , 'hex' => $ hex , 'title' => $ color [ 't' ] , 'shade' => ( object ) [ 'id' => $ color [ 's' ] , 'hex' => $ shade [ 'h' ] ] , 'base' => ( object ) [ 'id' => $ shade [ 'b' ] , 'hex' => $ base [ 'h' ] , 'title' => $ base [ 't' ] ] ] ; } }
Initialise all colors
Initialise all colors