Initializer

init(genericGamma22White:alpha:)

Returns a color object with the specified white and alpha values in the GenericGamma22 colorspace.

Declaration

init(genericGamma22White white: CGFloat, alpha: CGFloat)

Parameters

white

The white value of the color object.

alpha

The opacity value of the color object.

Return Value

The color object.

Discussion

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.

See Also

Creating a Color Using White Components

init(white: CGFloat, alpha: CGFloat)

Creates a color object with the specified brightness and alpha channel values.

init(calibratedWhite: CGFloat, alpha: CGFloat)

Creates a color object using the given opacity and grayscale values.

init(deviceWhite: CGFloat, alpha: CGFloat)

Creates a color object using the given opacity and grayscale values.