Brewer

public enum Brewer

Single/multi-hue sequential and diverging color scales adapted from ColorBrewer2.

Sequential (Multi-Hue)

  • Sequential multi-hue color scale.

    Note

    Original name is BuGn.

    Declaration

    Swift

    public static let blueGreen: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is BuPu.

    Declaration

    Swift

    public static let bluePurple: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is GnBu.

    Declaration

    Swift

    public static let greenBlue: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is OrRd.

    Declaration

    Swift

    public static let orangeRed: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is PuBu.

    Declaration

    Swift

    public static let purpleBlue: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is PuBuGn.

    Declaration

    Swift

    public static let purpleBlueGreen: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is PuRd.

    Declaration

    Swift

    public static let purpleRed: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is RdPu.

    Declaration

    Swift

    public static let redPurple: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is YlGn.

    Declaration

    Swift

    public static let yellowGreen: ColorScale
  • Sequential multi-hue colors cale.

    Note

    Original name is YlGnBu.

    Declaration

    Swift

    public static let yellowGreenBlue: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is YlOrBr.

    Declaration

    Swift

    public static let yellowOrangeBrown: ColorScale
  • Sequential multi-hue color scale.

    Note

    Original name is YlOrRd.

    Declaration

    Swift

    public static let yellowOrangeRed: ColorScale

Sequential (Single-Hue)

  • Sequential single-hue color scale.

    Note

    Original name is Blues.

    Declaration

    Swift

    public static let blues: ColorScale
  • Sequential single-hue color scale.

    Note

    Original name is Greens.

    Declaration

    Swift

    public static let greens: ColorScale
  • Sequential single-hue color scale.

    Note

    Original name is Greys.

    Declaration

    Swift

    public static let grays: ColorScale
  • Sequential single-hue color scale.

    Note

    Original name is Oranges.

    Declaration

    Swift

    public static let oranges: ColorScale
  • Sequential single-hue color scale.

    Note

    Original name is Purples.

    Declaration

    Swift

    public static let purples: ColorScale
  • Sequential single-hue color scale.

    Note

    Original name is Reds.

    Declaration

    Swift

    public static let reds: ColorScale

Diverging

  • Diverging color scale

    Note

    Original name is BrBG.

    Declaration

    Swift

    public static let brownTeal: ColorScale
  • Diverging color scale

    Note

    Original name is PiYG.

    Declaration

    Swift

    public static let pinkGreen: ColorScale
  • Diverging color scale

    Note

    Original name is PRGn.

    Declaration

    Swift

    public static let purpleGreen: ColorScale
  • Diverging color scale

    Note

    Original name is PuOr.

    Declaration

    Swift

    public static let purpleOrange: ColorScale
  • Diverging color scale

    Note

    Original name is RdBu.

    Declaration

    Swift

    public static let redBlue: ColorScale
  • Diverging color scale

    Note

    Original name is RdGy.

    Declaration

    Swift

    public static let redGray: ColorScale
  • Diverging color scale

    Note

    Original name is RdYlBu.

    Declaration

    Swift

    public static let redYellowBlue: ColorScale
  • Diverging color scale

    Note

    Original name is RdYlGn.

    Declaration

    Swift

    public static let redYellowGreen: ColorScale
  • Diverging color scale

    Note

    Original name is Spectral.

    Declaration

    Swift

    public static let spectral: ColorScale
  • Creates a figure that shows all Brewer color scales next to each other.

    Declaration

    Swift

    public static func swatch() -> Figure