Brewer
public enum Brewer
Single/multi-hue sequential and diverging color scales adapted from ColorBrewer2.
Copyright
Licensed under the Apache 2.0 license.-
Sequential multi-hue color scale.
Note
Original name isBuGn
.Declaration
Swift
public static let blueGreen: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isBuPu
.Declaration
Swift
public static let bluePurple: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isGnBu
.Declaration
Swift
public static let greenBlue: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isOrRd
.Declaration
Swift
public static let orangeRed: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isPuBu
.Declaration
Swift
public static let purpleBlue: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isPuBuGn
.Declaration
Swift
public static let purpleBlueGreen: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isPuRd
.Declaration
Swift
public static let purpleRed: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isRdPu
.Declaration
Swift
public static let redPurple: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isYlGn
.Declaration
Swift
public static let yellowGreen: ColorScale
-
Sequential multi-hue colors cale.
Note
Original name isYlGnBu
.Declaration
Swift
public static let yellowGreenBlue: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isYlOrBr
.Declaration
Swift
public static let yellowOrangeBrown: ColorScale
-
Sequential multi-hue color scale.
Note
Original name isYlOrRd
.Declaration
Swift
public static let yellowOrangeRed: ColorScale
-
Sequential single-hue color scale.
Note
Original name isBlues
.Declaration
Swift
public static let blues: ColorScale
-
Sequential single-hue color scale.
Note
Original name isGreens
.Declaration
Swift
public static let greens: ColorScale
-
Sequential single-hue color scale.
Note
Original name isGreys
.Declaration
Swift
public static let grays: ColorScale
-
Sequential single-hue color scale.
Note
Original name isOranges
.Declaration
Swift
public static let oranges: ColorScale
-
Sequential single-hue color scale.
Note
Original name isPurples
.Declaration
Swift
public static let purples: ColorScale
-
Sequential single-hue color scale.
Note
Original name isReds
.Declaration
Swift
public static let reds: ColorScale
-
Diverging color scale
Note
Original name isBrBG
.Declaration
Swift
public static let brownTeal: ColorScale
-
Diverging color scale
Note
Original name isPiYG
.Declaration
Swift
public static let pinkGreen: ColorScale
-
Diverging color scale
Note
Original name isPRGn
.Declaration
Swift
public static let purpleGreen: ColorScale
-
Diverging color scale
Note
Original name isPuOr
.Declaration
Swift
public static let purpleOrange: ColorScale
-
Diverging color scale
Note
Original name isRdBu
.Declaration
Swift
public static let redBlue: ColorScale
-
Diverging color scale
Note
Original name isRdGy
.Declaration
Swift
public static let redGray: ColorScale
-
Diverging color scale
Note
Original name isRdYlBu
.Declaration
Swift
public static let redYellowBlue: ColorScale
-
Diverging color scale
Note
Original name isRdYlGn
.Declaration
Swift
public static let redYellowGreen: ColorScale
-
Diverging color scale
Note
Original name isSpectral
.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