Contents

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.

See Also

Creating Colors