init(gray:alpha:)
Creates a color in the Generic gray color space.
Declaration
init(gray: CGFloat, alpha: CGFloat)Parameters
- gray:
A grayscale value (
0.0-1.0). - alpha:
An alpha value (
0.0-1.0).
Return Value
A color object.
Creates a color in the Generic gray color space.
init(gray: CGFloat, alpha: CGFloat)A grayscale value (0.0 - 1.0).
An alpha value (0.0 - 1.0).
A color object.