# Adaptation

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/colorspace/Adaptation.kt+class:androidx.compose.ui.graphics.colorspace.Adaptation) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  abstract class 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:

[See equation](https://developer.android.com/reference/android/graphics/ColorSpace.Adaptation.html)

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:

[See equation](https://developer.android.com/reference/android/graphics/ColorSpace.Adaptation.html)

As an example, the resulting matrix `T` can then be used to perform the chromatic adaptation of sRGB XYZ transform from D65 to D50:

[See equation](https://developer.android.com/reference/android/graphics/ColorSpace.Adaptation.html)

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Connector` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/package-summary#(androidx.compose.ui.graphics.colorspace.ColorSpace).connect(androidx.compose.ui.graphics.colorspace.ColorSpace,androidx.compose.ui.graphics.colorspace.RenderIntent)` |   |

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation#Bradford()` Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation#Ciecat02()` CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/Adaptation#VonKries()` von Kries chromatic adaptation transform. | Cmn |

## Public companion properties

### Bradford

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Bradford: Adaptation
```

Bradford chromatic adaptation transform, as defined in the CIECAM97s color appearance model.

### Ciecat02

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Ciecat02: Adaptation
```

CIECAT02 chromatic adaption transform, as defined in the CIECAM02 color appearance model.

### VonKries

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val VonKries: Adaptation
```

von Kries chromatic adaptation transform.