
Added by thebman220 on January-29-2009, 3:04 am
function opposite($color) {
$white=0;
for ($i=0; $i<6; $i+=2) {
$white+=base_convert(substr($color,$i,2),16,10)>127?1:0;
}
return $white>=2?"000000":"ffffff";
}
Added by thebman220 on May-2-2009, 4:40 am
Added by thebman220 on April-29-2009, 11:47 pm
Added by thebman220 on April-5-2009, 1:48 pm
Added by thebman220 on January-29-2009, 3:15 am
Added by thebman220 on January-3-2009, 6:25 pm