deltaE: {
    deltaE2000: ((color, sample, options?) => number);
    deltaE76: ((color, sample) => number);
    deltaECMC: ((color, sample, options?) => number);
    deltaEHCT: ((color, sample) => number);
    deltaEITP: ((color, sample) => number);
    deltaEJz: ((color, sample) => number);
    deltaEOK: ((color, sample) => number);
    deltaEOK2: ((color, sample) => number);
}

Type declaration

  • deltaE2000: ((color, sample, options?) => number)
      • (color, sample, options?): number
      • Parameters

        • color: ColorTypes
        • sample: ColorTypes
        • options: {
              kC?: number;
              kH?: number;
              kL?: number;
          } = {}
          • Optional kC?: number
          • Optional kH?: number
          • Optional kL?: number

        Returns number

  • deltaE76: ((color, sample) => number)
  • deltaECMC: ((color, sample, options?) => number)
      • (color, sample, options?): number
      • Parameters

        • color: ColorTypes
        • sample: ColorTypes
        • options: {
              c?: number;
              l?: number;
          } = {}
          • Optional c?: number
          • Optional l?: number

        Returns number

  • deltaEHCT: ((color, sample) => number)
      • (color, sample): number
      • Color distance using HCT.

        Parameters

        Returns number

  • deltaEITP: ((color, sample) => number)
      • (color, sample): number
      • Delta E in ICtCp space, which the ITU calls Delta E ITP, which is shorter. Formulae from ITU Rec. ITU-R BT.2124-0

        Parameters

        Returns number

  • deltaEJz: ((color, sample) => number)
      • (color, sample): number
      • More accurate color-difference formulae than the simple 1976 Euclidean distance in Lab

        Uses JzCzHz, which has improved perceptual uniformity and thus a simple Euclidean root-sum of ΔL² ΔC² ΔH² gives good results.

        Parameters

        Returns number

  • deltaEOK: ((color, sample) => number)
      • (color, sample): number
      • More accurate color-difference formulae than the simple 1976 Euclidean distance in CIE Lab

        Parameters

        Returns number

  • deltaEOK2: ((color, sample) => number)
      • (color, sample): number
      • More accurate color-difference formulae than the simple 1976 Euclidean distance in CIE Lab The Oklab a and b axes are scaled relative to the L axis, for better uniformity Björn Ottosson said: "I've recently done some tests with color distance datasets as implemented in Colorio and on both the Combvd dataset and the OSA-UCS dataset a scale factor of slightly more than 2 for a and b would give the best results (2.016 works best for Combvd and 2.045 for the OSA-UCS dataset)."

        Parameters

        Returns number