src/Alg/ColorConverter.php
public static function rgb2cmy( $rgb )
	{
		list( $r, $g, $b ) = $rgb;
		$c	= 1 - ( $r / 255 );
		$m	= 1 - ( $g / 255 );
		$y	= 1 - ( $b / 255 );
		return array( $c, $m, $y );
	}
public static function rgb2cmy( $rgb )
	{
		list( $r, $g, $b ) = $rgb;
		$c	= 1 - ( $r / 255 );
		$m	= 1 - ( $g / 255 );
		$y	= 1 - ( $b / 255 );
		return array( $c, $m, $y );
	}
public static function rgb2cmy ( $ rgb ) { list ( $ r , $ g , $ b ) = $ rgb ; $ c = 1 - ( $ r / 255 ) ; $ m = 1 - ( $ g / 255 ) ; $ y = 1 - ( $ b / 255 ) ; return array ( $ c , $ m , $ y ) ; }
Converts RGB to CMY.
@access		public
@static
@param		array	rgb		RGB-Color as array
@return		array
Converts RGB to CMY .