g3-toolkit API Reference
    Preparing search index...

    Function scaleColor

    • Interpolate a 0..1 value onto a scale (nearest-step; perceptual uniformity of viridis makes stepwise selection adequate for cell and node fills without a color-space interpolation dependency).

      Parameters

      • value: number
      • scale: readonly string[] = SEQUENTIAL_SCALE

      Returns string