• Calculates the color distance between two colors.

    This function uses the CIE94 color difference formula to calculate the color distance between two colors.

    Parameters

    • rgb1: [number, number, number]

      The first RGB color.

    • rgb2: [number, number, number]

      The second RGB color.

    Returns number

    The color distance between the two colors.