Color

public struct Color

Represents a 3-component RGB color where each component is 8 bits. Used for specifying log output colors.

  • r

    The red component of the color.

    Declaration

    Swift

    public private(set) var r: Component
  • A type representing a single color component. A value of 0x00 represents absense of the color, while 0xFF indicates color at full brightness.

    Declaration

    Swift

    public typealias Component = UInt8
  • g

    The green component of the color.

    Declaration

    Swift

    public private(set) var g: Component
  • b

    The blue component of the color.

    Declaration

    Swift

    public private(set) var b: Component
  • Color initializer.

    Declaration

    Swift

    public init(r: Component, g: Component, b: Component)

    Parameters

    r

    The red component

    g

    The green component

    b

    The blue component