Lines Matching refs:hex
70 function hex2rgb($hex) { argument
72 $hex = str_replace('#', '', $hex);
75 if(strlen($hex) == 3){
76 $hex = substr($hex,0,1).
77 substr($hex,0,1).
78 substr($hex,1,1).
79 substr($hex,1,1).
80 substr($hex,2,1).
81 substr($hex,2,1);
86 'r' => hexdec(substr($hex, 0, 2)),
87 'g' => hexdec(substr($hex, 2, 2)),
88 'b' => hexdec(substr($hex, 4, 2))