Creates a color object with the specified brightness and alpha channel values.
- macOS 10.9+
The brightness. If the value is outside of the range
0–1, the extended sRGB color space is used.
The alpha (opacity), expressed as a floating-point value in the range
1(opaque). Alpha values below
0are interpreted as
0, and values above
1are interpreted as
This method accepts extended color component values. If the alpha or white values are outside of the
0-1 range, the method creates a color in the extended range or
extended color space that is compatible with the sRGB colorspace. This method is provided for easier reuse of code that uses
UIColor in iOS.