Color

public enum Color : Hashable

Basic colors that can be used to set the foreground and background colors in console applications, these can be used as parameters for creating Attributes.

  • Undocumented

    Declaration

    Swift

    case black
  • Undocumented

    Declaration

    Swift

    case blue
  • Undocumented

    Declaration

    Swift

    case green
  • Undocumented

    Declaration

    Swift

    case cyan
  • red

    Undocumented

    Declaration

    Swift

    case red
  • Undocumented

    Declaration

    Swift

    case magenta
  • Undocumented

    Declaration

    Swift

    case brown
  • Undocumented

    Declaration

    Swift

    case gray
  • Undocumented

    Declaration

    Swift

    case darkGray
  • Undocumented

    Declaration

    Swift

    case brightBlue
  • Undocumented

    Declaration

    Swift

    case brightGreen
  • Undocumented

    Declaration

    Swift

    case brightCyan
  • Undocumented

    Declaration

    Swift

    case brightRed
  • Undocumented

    Declaration

    Swift

    case brightMagenta
  • Undocumented

    Declaration

    Swift

    case brightYellow
  • Undocumented

    Declaration

    Swift

    case white
  • Undocumented

    Declaration

    Swift

    case rgb(Int, Int, Int)
  • Undocumented

    Declaration

    Swift

    public static func parse(_ name: String) -> Color?