RGB

struct RGB : Hashable

The RGB (red, green, blue) 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
  • Initializes the RGB (red, green, blue) components of a color.

    Declaration

    Swift

    public init(red: Int, green: Int, blue: 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].