Adaptation
enum class Adaptation
kotlin.Any | ||
↳ | kotlin.Enum<androidx.compose.ui.graphics.colorspace.Adaptation> | |
↳ | androidx.compose.ui.graphics.colorspace.Adaptation |
List of adaptation matrices that can be used for chromatic adaptation using the von Kries transform. These matrices are used to convert values in the CIE XYZ space to values in the LMS space (Long Medium Short).
Given an adaptation matrix A
, the conversion from XYZ to
LMS is straightforward:
The complete von Kries transform T
uses a diagonal matrix
noted D
to perform the adaptation in LMS space. In addition
to A
and D
, the source white point W1
and the destination
white point W2
must be specified:
As an example, the resulting matrix T
can then be used to
perform the chromatic adaptation of sRGB XYZ transform from D65
to D50:
Summary
Enum values | |
---|---|
Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model. |
|
CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model. |
|
von Kries chromatic adaptation transform. |
Inherited extension functions | ||
---|---|---|
From androidx.core.util
|
Enum values
Bradford
enum val Bradford : Adaptation
Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model.
Ciecat02
enum val Ciecat02 : Adaptation
CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model.