|
Posted by BKDotCom on 11/21/05 23:47
Suggestion:
replace these 3 lines
$r = hexdec(substr($c,1,2));
$g = hexdec(substr($c,3,2));
$b = hexdec(substr($c,5,2));
with
$c = strreplace('#','',$c); // remove "#" from color string if exists
list($r,$g,$b) = sscanf($c,'%2s%2s%2s');
Navigation:
[Reply to this message]
|