RGBA

struct RGBA : Hashable

The RGBA (red, green, blue, alpha) components of a color, in the range [0, 255].

  • red

    The red component of the color, in the range [0, 255].

    Declaration

    Swift

    public var red: Int
  • The green component of the color, in the range [0, 255].

    Declaration

    Swift

    public var green: Int
  • The blue component of the color, in the range [0, 255].

    Declaration

    Swift

    public var blue: Int
  • The alpha component of the color, in the range [0, 255].

    Declaration

    Swift

    public var alpha: Int
  • Initializes the RGBA (red, green, blue, alpha) components of a color.

    Declaration

    Swift

    public init(red: Int, green: Int, blue: Int, alpha: Int)

    Parameters

    red

    The red component of the color, in the range [0, 255].

    green

    The green component of the color, in the range [0, 255].

    blue

    The blue component of the color, in the range [0, 255].

    alpha

    The alpha component of the color, in the range [0, 255].