added method for parsing color number or string to uint