Global Variables

The following global variables are available globally.

  • A Color object whose RGB value is 0, 0, 0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let black     = Color(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0)
  • A Color object whose RGB value is 0.33, 0.33, 0.33 and whose alpha value is 1.0.

    Declaration

    Swift

    public let darkGray  = Color(red: 1.0/3.0, green: 1.0/3.0, blue: 1.0/3.0, alpha: 1.0)
  • A Color object whose RGB value is 0.66, 0.66, 0.66 and whose alpha value is 1.0.

    Declaration

    Swift

    public let lightGray = Color(red: 2.0/3.0, green: 2.0/3.0, blue: 2.0/3.0, alpha: 1.0)
  • A Color object whose RGB value is 1.0, 1.0, 1.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let white     = Color(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
  • A Color object whose RGB value is 0.5, 0.5, 0.5 and whose alpha value is 1.0.

    Declaration

    Swift

    public let gray      = Color(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
  • red

    A Color object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let red       = Color(red: 1.0, green: 0.0, blue: 0.0, alpha: 1.0)
  • A Color object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let green     = Color(red: 0.0, green: 1.0, blue: 0.0, alpha: 1.0)
  • A Color object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let blue      = Color(red: 0.0, green: 0.0, blue: 1.0, alpha: 1.0)
  • A Color object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let cyan      = Color(red: 0.0, green: 1.0, blue: 1.0, alpha: 1.0)
  • A Color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let yellow    = Color(red: 1.0, green: 1.0, blue: 0.0, alpha: 1.0)
  • A Color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let magenta   = Color(red: 1.0, green: 0.0, blue: 1.0, alpha: 1.0)
  • A Color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let orange    = Color(red: 1.0, green: 0.5, blue: 0.0, alpha: 1.0)
  • A Color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0.

    Declaration

    Swift

    public let purple    = Color(red: 0.5, green: 0.0, blue: 0.5, alpha: 1.0)
  • A Color object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0.

    Declaration

    Swift

    public let brown     = Color(red: 0.6, green: 0.4, blue: 0.2, alpha: 1.0)
  • A Color object whose RGB value is 0.0, 0.0, 0.0 and whose alpha value is 0.0.

    Declaration

    Swift

    public let clear     = Color(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
  • A Color object whose RGB value is 1.0, 0.0, 0.475 and whose alpha value is 1.0.

    Declaration

    Swift

    public let C4Pink    = Color(red: 1.0, green: 0.0, blue: 0.475, alpha: 1.0)
  • A Color object whose RGB value is 0.098, 0.271, 1.0 and whose alpha value is 1.0.

    Declaration

    Swift

    public let C4Blue    = Color(red: 0.098, green: 0.271, blue: 1.0, alpha: 1.0)
  • A Color object whose RGB value is 0.0, 0.0, 0.541 and whose alpha value is 1.0.

    Declaration

    Swift

    public let C4Purple  = Color(red: 0.0, green: 0.0, blue: 0.541, alpha: 1.0)
  • A Color object whose RGB value is 0.98, 0.98, 0.98 and whose alpha value is 1.0.

    Declaration

    Swift

    public let C4Grey    = Color(red: 0.98, green: 0.98, blue: 0.98, alpha: 1.0)