# CompositionColorSpace

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/animations/enum-compositioncolorspace/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum CompositionColorSpace
```

The colour space a colour animation interpolates in (WinUI
`CompositionColorSpace`, the type of
`ColorKeyFrameAnimation.InterpolationColorSpace`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L162)

## Members

- [`Auto`](#variant-auto)
- [`Hsl`](#variant-hsl)
- [`Rgb`](#variant-rgb)
- [`HslLinear`](#variant-hsllinear)
- [`RgbLinear`](#variant-rgblinear)

<a id="variant-auto"></a>

### Auto

```rust
Auto
```

The compositor chooses: here the gamma-encoded RGB space, as `Rgb`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L168)

<a id="variant-hsl"></a>

### Hsl

```rust
Hsl
```

Hue, saturation and lightness.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L170)

<a id="variant-rgb"></a>

### Rgb

```rust
Rgb
```

The red, green and blue channels as stored (gamma-encoded sRGB).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L172)

<a id="variant-hsllinear"></a>

### HslLinear

```rust
HslLinear
```

Hue, saturation and lightness of the linear-light colour.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L174)

<a id="variant-rgblinear"></a>

### RgbLinear

```rust
RgbLinear
```

The red, green and blue channels in linear light.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/interpolators.rs#L176)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
