>0x8)*0x11; $g = ($decimal>>0x4&0xf)*0x11; $b = ($decimal&0xf)*0x11; }else{ $r = $decimal>>0x10; $g = $decimal>>0x8&0xff; $b = $decimal&0xff; } return $r . ', ' . $g . ', ' . $b; } }