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

    Function computeAdaptationMatrix

    • Computes the chromatic adaptation matrix to transform colors from a source illuminant to a target illuminant using a specified cone response model.

      Parameters

      • sourceIlluminant: Illuminant

        The source illuminant, represented by its XYZ tri-stimulus values.

      • targetIlluminant: Illuminant

        The target illuminant, represented by its XYZ tri-stimulus values.

      • coneModel: ConeResponseModel

        The cone response model containing transformation matrices for converting between XYZ and LMS color spaces as well as their inverses.

      Returns Matrix3x3

      The 3x3 chromatic adaptation matrix that can be used to adapt colors from the source illuminant to the target illuminant.