src/Alg/ColorConverter.php
public static function rgb2html( $rgb )
	{
		list( $r, $g, $b ) = $rgb;
		$html	= sprintf( "%2X%2X%2X", $r, $g, $b );
		$html	= str_replace( " ", "0", $html );
		return	$html;
	}
public static function rgb2html( $rgb )
	{
		list( $r, $g, $b ) = $rgb;
		$html	= sprintf( "%2X%2X%2X", $r, $g, $b );
		$html	= str_replace( " ", "0", $html );
		return	$html;
	}
public static function rgb2html ( $ rgb ) { list ( $ r , $ g , $ b ) = $ rgb ; $ html = sprintf ( "%2X%2X%2X" , $ r , $ g , $ b ) ; $ html = str_replace ( " " , "0" , $ html ) ; return $ html ; }
Converts RGB to HTML.
@access		public
@static
@param		array	rgb		RGB-Color as array
@return		string
Converts RGB to HTML .