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

    Function registerConversion

    • Registers a conversion function from one color space to another. This adds the conversion to the registry for later use.

      Type Parameters

      • TFrom extends ColorBase

        The source color space type

      • TTo extends ColorBase

        The target color space type

      Parameters

      • from: string

        The source color space identifier

      • to: string

        The target color space identifier

      • convert: ColorConversionFn<TFrom, TTo>

        {ColorConversionFn} - The conversion function

      Returns void