@OPEN-KAPPA/COLORS
    Preparing search index...

    Type Alias PaletteFn<C>

    PaletteFn: (way: PaletteWay, color: C, weight: number) => C

    Generic palette generation function.

    Type Parameters

    Type Declaration

      • (way: PaletteWay, color: C, weight: number): C
      • Parameters

        • way: PaletteWay

          The target color direction.

        • color: C

          The source reference color.

        • weight: number

          The shifting ratio.

        Returns C

        The mapped color.