Swift version of RGB() and RGBA().