d4_scale_chromatic library
This package provides sequential, diverging and categorical color schemes designed to work with d4_scale’s ScaleOrdinal and ScaleSequential.
Most of these schemes are derived from Cynthia A. Brewer’s ColorBrewer. Since ColorBrewer publishes only discrete color schemes, the sequential and diverging scales are interpolated using uniform B-splines.
Properties
-
schemeAccent
→ List<
String> Categorical schemes -
An list of eight categorical colors represented as RGB hexadecimal strings.
final
-
schemeBlues
→ List<
List< Sequential schemesString> ?> -
The “Blues” discrete sequential color scheme of size k in 3–9.
final
-
schemeBrBG
→ List<
List< Diverging schemesString> ?> -
The “BrBG” discrete diverging color scheme of size k in 3–11.
final
-
schemeBuGn
→ List<
List< Sequential schemesString> ?> -
The “BuGn” discrete sequential color scheme of size k in 3–9.
final
-
schemeBuPu
→ List<
List< Sequential schemesString> ?> -
The “BuPu” discrete sequential color scheme of size k in 3–9.
final
-
schemeCategory10
→ List<
String> Categorical schemes -
An list of ten categorical colors represented as RGB hexadecimal strings.
final
-
schemeDark2
→ List<
String> Categorical schemes -
An list of eight categorical colors represented as RGB hexadecimal strings.
final
-
schemeGnBu
→ List<
List< Sequential schemesString> ?> -
The “GnBu” discrete sequential color scheme of size k in 3–9.
final
-
schemeGreens
→ List<
List< Sequential schemesString> ?> -
The “Greens” discrete sequential color scheme of size k in 3–9.
final
-
schemeGreys
→ List<
List< Sequential schemesString> ?> -
The “Greys” discrete sequential color scheme of size k in 3–9.
final
-
schemeOranges
→ List<
List< Sequential schemesString> ?> -
The “Oranges” discrete sequential color scheme of size k in 3–9.
final
-
schemeOrRd
→ List<
List< Sequential schemesString> ?> -
The “OrRd” discrete sequential color scheme of size k in 3–9.
final
-
schemePaired
→ List<
String> Categorical schemes -
An list of twelve categorical colors represented as RGB hexadecimal strings.
final
-
schemePastel1
→ List<
String> Categorical schemes -
An list of nine categorical colors represented as RGB hexadecimal strings.
final
-
schemePastel2
→ List<
String> Categorical schemes -
An list of eight categorical colors represented as RGB hexadecimal strings.
final
-
schemePiYG
→ List<
List< Diverging schemesString> ?> -
The “PiYG” discrete diverging color scheme of size k in 3–11.
final
-
schemePRGn
→ List<
List< Diverging schemesString> ?> -
The “PRGn” discrete diverging color scheme of size k in 3–11.
final
-
schemePuBu
→ List<
List< Sequential schemesString> ?> -
The “PuBu” discrete sequential color scheme of size k in 3–9.
final
-
schemePuBuGn
→ List<
List< Sequential schemesString> ?> -
The “PuBuGn” discrete sequential color scheme of size k in 3–9.
final
-
schemePuOr
→ List<
List< Diverging schemesString> ?> -
The “PuOr” discrete diverging color scheme of size k in 3–11.
final
-
schemePuRd
→ List<
List< Sequential schemesString> ?> -
The “PuRd” discrete sequential color scheme of size k in 3–9.
final
-
schemePurples
→ List<
List< Sequential schemesString> ?> -
The “Purples” discrete sequential color scheme of size k in 3–9.
final
-
schemeRdBu
→ List<
List< Diverging schemesString> ?> -
The “RdBu” discrete diverging color scheme of size k in 3–11.
final
-
schemeRdGy
→ List<
List< Diverging schemesString> ?> -
The “RdGy” discrete diverging color scheme of size k in 3–11.
final
-
schemeRdPu
→ List<
List< Sequential schemesString> ?> -
The “RdPu” discrete sequential color scheme of size k in 3–9.
final
-
schemeRdYlBu
→ List<
List< Diverging schemesString> ?> -
The “RdYlBu” discrete diverging color scheme of size k in 3–11.
final
-
schemeRdYlGn
→ List<
List< Diverging schemesString> ?> -
The “RdYlGn” discrete diverging color scheme of size k in 3–11.
final
-
schemeReds
→ List<
List< Sequential schemesString> ?> -
The “Reds” discrete sequential color scheme of size k in 3–9.
final
-
schemeSet1
→ List<
String> Categorical schemes -
An list of nine categorical colors represented as RGB hexadecimal strings.
final
-
schemeSet2
→ List<
String> Categorical schemes -
An list of eight categorical colors represented as RGB hexadecimal strings.
final
-
schemeSet3
→ List<
String> Categorical schemes -
An list of twelve categorical colors represented as RGB hexadecimal strings.
final
-
schemeSpectral
→ List<
List< Diverging schemesString> ?> -
The “Spectral” discrete diverging color scheme of size k in 3–11.
final
-
schemeTableau10
→ List<
String> Categorical schemes -
An list of ten categorical colors authored by Tableau as part of
Tableau 10
represented as RGB hexadecimal strings.
final
-
schemeYlGn
→ List<
List< Sequential schemesString> ?> -
The “YlGn” discrete sequential color scheme of size k in 3–9.
final
-
schemeYlGnBu
→ List<
List< Sequential schemesString> ?> -
The “YlGnBu” discrete sequential color scheme of size k in 3–9.
final
-
schemeYlOrBr
→ List<
List< Sequential schemesString> ?> -
The “YlOrBr” discrete sequential color scheme of size k in 3–9.
final
-
schemeYlOrRd
→ List<
List< Sequential schemesString> ?> -
The “YlOrRd” discrete sequential color scheme of size k in 3–9.
final
Functions
-
interpolateBlues(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “Blues” sequential color scheme represented as an RGB string. -
interpolateBrBG(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string. -
interpolateBuGn(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “BuGn” sequential color scheme represented as an RGB string. -
interpolateBuPu(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “BuPu” sequential color scheme represented as an RGB string. -
interpolateCividis(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “cividis” color vision deficiency-optimized color scheme designed by Nuñez, Anderton, and Renslow, represented as an RGB string. -
interpolateCool(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string. -
interpolateCubehelixDefault(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string. -
interpolateGnBu(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “GnBu” sequential color scheme represented as an RGB string. -
interpolateGreens(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the "Greens" sequential color scheme represented as an RGB string. -
interpolateGreys(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the "Greys" sequential color scheme represented as an RGB string. -
interpolateInferno(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “inferno” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string. -
interpolateMagma(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “magma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string. -
interpolateOranges(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the "Oranges" sequential color scheme represented as an RGB string. -
interpolateOrRd(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string. -
interpolatePiYG(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string. -
interpolatePlasma(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, represented as an RGB string. -
interpolatePRGn(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string. -
interpolatePuBu(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PuBu” sequential color scheme represented as an RGB string. -
interpolatePuBuGn(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PuBuGn” sequential color scheme represented as an RGB string. -
interpolatePuOr(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string. -
interpolatePuRd(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string. -
interpolatePurples(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the "Purples" sequential color scheme represented as an RGB string. -
interpolateRainbow(
num t) → String Cyclical schemes -
Given a number
t
in the range [0,1], returns the corresponding color from interpolateWarm scale from [0.0, 0.5] followed by the interpolateCool scale from [0.5, 1.0], thus implementing the cyclical less-angry rainbow color scheme. -
interpolateRdBu(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string. -
interpolateRdGy(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string. -
interpolateRdPu(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “RdPu” sequential color scheme represented as an RGB string. -
interpolateRdYlBu(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string. -
interpolateRdYlGn(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string. -
interpolateReds(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the "Reds" sequential color scheme represented as an RGB string. -
interpolateSinebow(
num t) → String Cyclical schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “sinebow” color scheme by Jim Bumgardner and Charlie Loyd. -
interpolateSpectral(
num t) → String Diverging schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string. -
interpolateTurbo(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “turbo” color scheme by Anton Mikhailov. -
interpolateViridis(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “viridis” perceptually-uniform color scheme designed by van der Walt, Smith and Firing for matplotlib, represented as an RGB string. -
interpolateWarm(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from a 180° rotation of Niccoli’s perceptual rainbow, represented as an RGB string. -
interpolateYlGn(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “YlGn” sequential color scheme represented as an RGB string. -
interpolateYlGnBu(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “YlGnBu” sequential color scheme represented as an RGB string. -
interpolateYlOrBr(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “YlOrBr” sequential color scheme represented as an RGB string. -
interpolateYlOrRd(
num t) → String Sequential schemes -
Given a number
t
in the range [0,1], returns the corresponding color from the “YlOrRd” sequential color scheme represented as an RGB string.