src/Alg/ColorConverter.php
public static function cmy2cmyk( $cmy )
	{
		list( $c, $m, $y ) = $cmy;
		$k	= min( $c, $m, $y );
		$c	= ( $c - $k ) / ( 1 - $k );
		$m	= ( $m - $k ) / ( 1 - $k );
		$y	= ( $y - $k ) / ( 1 - $k );
		return array( $c, $m, $y, $k );
	}
public static function cmy2cmyk( $cmy )
	{
		list( $c, $m, $y ) = $cmy;
		$k	= min( $c, $m, $y );
		$c	= ( $c - $k ) / ( 1 - $k );
		$m	= ( $m - $k ) / ( 1 - $k );
		$y	= ( $y - $k ) / ( 1 - $k );
		return array( $c, $m, $y, $k );
	}
public static function cmy2cmyk ( $ cmy ) { list ( $ c , $ m , $ y ) = $ cmy ; $ k = min ( $ c , $ m , $ y ) ; $ c = ( $ c - $ k ) / ( 1 - $ k ) ; $ m = ( $ m - $ k ) / ( 1 - $ k ) ; $ y = ( $ y - $ k ) / ( 1 - $ k ) ; return array ( $ c , $ m , $ y , $ k ) ; }
Converts CMY to CMYK.
@access		public
@static
@param		array	cmy		CMY-Color as array
@return		array
Converts CMY to CMYK .