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

    Function getAdaptationMatrix

    • Calculates the chromatic adaptation matrix for converting colors from a source illuminant to a target illuminant using a specific cone response model. If a precomputed matrix exists for the specified parameters, it is returned. Otherwise, the matrix is computed dynamically.

      Parameters

      • sourceIlluminant: Illuminant

        The illuminant representing the source light condition.

      • targetIlluminant: Illuminant

        The illuminant representing the target light condition.

      • coneModel: ConeResponseModel

        The cone response model to be used for the adaptation.

      Returns Matrix3x3

      The 3x3 chromatic adaptation matrix.