Color

public class Color : Hashable

This represents the colors used in SwiftTerm, in particular for cells and backgrounds in 16-bit RGB mode

  • red

    Red component 0..65535

    Declaration

    Swift

    public var red: UInt16
  • Green component 0..65535

    Declaration

    Swift

    public var green: UInt16
  • Blue component 0..65535

    Declaration

    Swift

    public var blue: UInt16
  • Declaration

    Swift

    public static func == (lhs: Color, rhs: Color) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Initializes a color with the red, green and blue components in the 0…65535 range

    Declaration

    Swift

    public init(red: UInt16, green: UInt16, blue: UInt16)