Creates a color object using the specified opacity and grayscale values.
- iOS 2.0+
- tvOS 9.0+
- watchOS 2.0+
The grayscale value of the color object. On applications linked for iOS 10 or later, the color is specified in an extended color space, and the input value is never clamped. On earlier versions of iOS, white values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.
The opacity value of the color object, specified as a value from 0.0 to 1.0. Alpha values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0
The color object. The color information represented by this object is in the device gray colorspace.