Converted UIColorFromRGB macro to a function.