src/Alg/ColorConverter.php
public static function xyz2rgb( $xyz )
	{
		list( $x, $y, $z ) = $xyz;
		$r	= 3.063219 * $x - 1.393326 * $y - 0.475801 * $z;
		$g	= -0.969245 * $x + 1.875968 * $y + 0.041555 * $z;
		$b	= 0.067872 * $x - 0.228833 * $y + 1.069251 * $z;
		$r	= round( $r * 255 );
		$g	= round( $g * 255 );
		$b	= round( $b * 255 );
		return array( $r, $g, $b );
	}
public static function xyz2rgb( $xyz )
	{
		list( $x, $y, $z ) = $xyz;
		$r	= 3.063219 * $x - 1.393326 * $y - 0.475801 * $z;
		$g	= -0.969245 * $x + 1.875968 * $y + 0.041555 * $z;
		$b	= 0.067872 * $x - 0.228833 * $y + 1.069251 * $z;
		$r	= round( $r * 255 );
		$g	= round( $g * 255 );
		$b	= round( $b * 255 );
		return array( $r, $g, $b );
	}
public static function xyz2rgb ( $ xyz ) { list ( $ x , $ y , $ z ) = $ xyz ; $ r = 3.063219 * $ x - 1.393326 * $ y - 0.475801 * $ z ; $ g = - 0.969245 * $ x + 1.875968 * $ y + 0.041555 * $ z ; $ b = 0.067872 * $ x - 0.228833 * $ y + 1.069251 * $ z ; $ r = round ( $ r * 255 ) ; $ g = round ( $ g * 255 ) ; $ b = round ( $ b * 255 ) ; return array ( $ r , $ g , $ b ) ; }
Converts XYZ to RGB.
@access		public
@static
@param		array	xyz		XYZ-Color as array
@return		array
Converts XYZ to RGB .