removed hex2rgb()

This commit is contained in:
smiley
2015-12-09 23:32:25 +01:00
parent 3327c53ec6
commit 99a2b88936
-15
View File
@@ -196,21 +196,6 @@ class Util{
return $digit;
}
/**
* used for converting fg/bg colors (e.g. #0000ff = 0x0000FF) - added 2015.07.27 ~ DoktorJ
*
* @param int $hex
*
* @return array
*/
public static function hex2rgb($hex = 0x0){
return [
'r' => (int)floor($hex / 65536),
'g' => (int)floor($hex / 256) % 256,
'b' => (int)$hex % 256,
];
}
/**
* @param string $c
*