Contents

init(deviceWhite:alpha:)

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

Declaration

init(deviceWhite white: CGFloat, alpha: CGFloat)

Parameters

  • white:

    The grayscale 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

Related Documentation

Creating a color using white components