@dragonspark/chroma-kit
    Preparing search index...

    Type Alias ColorConversionFn<TFrom, TTo>

    ColorConversionFn: (color: TFrom, ...args: any[]) => TTo

    Type for a color conversion function that converts from one color space to another.

    Type Parameters

    • TFrom extends ColorBase

      The source color space type

    • TTo extends ColorBase

      The target color space type

    Type declaration

      • (color: TFrom, ...args: any[]): TTo
      • Parameters

        • color: TFrom

          The color to convert

        • ...args: any[]

          Additional arguments that might be needed for the conversion

        Returns TTo

        The converted color in the target color space