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

    Function deltaEOKScaled

    • Calculates a scaled color difference (Delta E) between two colors in the OKLab color space.

      This function applies a scaling factor to the a and b components before calculating the Euclidean distance. This scaling can improve the perceptual uniformity of the color difference calculation for specific use cases.

      Parameters

      • color: OKLabColor

        The first color in OKLab space

      • sample: OKLabColor

        The second color in OKLab space to compare against

      • OptionalscalingFactor: number = APPRX_OKLAB_SCALING

        The scaling factor to apply to the a and b components

      Returns number

      The scaled color difference value (Delta E)

      OKLAB_DELTAE_SCALING for predefined scaling factors