/** * hex2rgb * Given a hex color, returns a 4 element array, with keys 0-2 containing * the RGB values appropriately and with key 3 containing the original * color. * * @access public * @param string The HEX string of the color. * @return array 4 element array. * @author Jason Lotito <*****@*****.**> */ function hex2rgb($hex) { $return = Image_Color::_splitColor($hex); $return['hex'] = $hex; return $return; }