Variable colorInterpolatesConst

colorInterpolates: {
    Blues: ((t) => string);
    BrBG: ((t) => string);
    BuGn: ((t) => string);
    BuPu: ((t) => string);
    Cividis: ((t) => string);
    Cool: ((t) => string);
    CubehelixDefault: ((t) => string);
    GnBu: ((t) => string);
    Greens: ((t) => string);
    Greys: ((t) => string);
    Inferno: ((t) => string);
    Magma: ((t) => string);
    OrRd: ((t) => string);
    Oranges: ((t) => string);
    PRGn: ((t) => string);
    PiYG: ((t) => string);
    Plasma: ((t) => string);
    PuBu: ((t) => string);
    PuBuGn: ((t) => string);
    PuOr: ((t) => string);
    PuRd: ((t) => string);
    Purples: ((t) => string);
    Rainbow: ((t) => string);
    RdBu: ((t) => string);
    RdGy: ((t) => string);
    RdPu: ((t) => string);
    RdYlBu: ((t) => string);
    RdYlGn: ((t) => string);
    Reds: ((t) => string);
    Sinebow: ((t) => string);
    Spectral: ((t) => string);
    Turbo: ((t) => string);
    Viridis: ((t) => string);
    Warm: ((t) => string);
    YlGn: ((t) => string);
    YlGnBu: ((t) => string);
    YlOrBr: ((t) => string);
    YlOrRd: ((t) => string);
} = ...

Generated with: const asd = Object.keys(d3sc) .filter((x) => x.startsWith("interpolate")) .map((x) => x.substring(11)) .map((x) => ${x}: d3sc.interpolate${x},) .join("\n"); console.log(asd);

Type declaration

  • Blues: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Blues” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • BrBG: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • BuGn: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “BuGn” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • BuPu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “BuPu” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Cividis: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • Cool: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • CubehelixDefault: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • GnBu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “GnBu” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Greens: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Greens” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Greys: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Greys” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Inferno: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • Magma: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • OrRd: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Oranges: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Oranges” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • PRGn: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • PiYG: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Plasma: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • PuBu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PuBu” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • PuBuGn: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PuBuGn” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • PuOr: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • PuRd: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Purples: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Purples” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Rainbow: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from d3.interpolateWarm scale from [0.0, 0.5] followed by the d3.interpolateCool scale from [0.5, 1.0], thus implementing the cyclical less-angry rainbow color scheme.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • RdBu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • RdGy: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • RdPu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “RdPu” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • RdYlBu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • RdYlGn: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Reds: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Reds” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Sinebow: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “sinebow” color scheme by Jim Bumgardner and Charlie Loyd.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • Spectral: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • Turbo: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “turbo” color scheme by Anton Mikhailov.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • Viridis: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • Warm: ((t) => string)
      • (t): string
      • 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.

        Parameters

        • t: number

          A number in the interval [0, 1].

        Returns string

  • YlGn: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “YlGn” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • YlGnBu: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “YlGnBu” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • YlOrBr: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “YlOrBr” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

  • YlOrRd: ((t) => string)
      • (t): string
      • Given a number t in the range [0,1], returns the corresponding color from the “YlOrRd” sequential color scheme represented as an RGB string.

        Parameters

        • t: number

          Number in the range [0, 1].

        Returns string

Generated using TypeDoc