# ColorSpectrumComponents

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-color-picker/enum-colorspectrumcomponents/

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

```rust
enum ColorSpectrumComponents
```

Defines the two HSV color components displayed by a
`ColorSpectrum`.

Order of the color components is important and correspond with an X/Y axis in Box
shape or a degree/radius in Ring shape.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L11)

## Members

- [`HueValue`](#variant-huevalue)
- [`ValueHue`](#variant-valuehue)
- [`HueSaturation`](#variant-huesaturation)
- [`SaturationHue`](#variant-saturationhue)
- [`SaturationValue`](#variant-saturationvalue)
- [`ValueSaturation`](#variant-valuesaturation)

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

### HueValue

```rust
HueValue = 0
```

The Hue and Value components.

In Box shape, Hue is mapped to the X-axis and Value is mapped to the Y-axis.
In Ring shape, Hue is mapped to degrees and Value is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L16)

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

### ValueHue

```rust
ValueHue = 1
```

The Value and Hue components.

In Box shape, Value is mapped to the X-axis and Hue is mapped to the Y-axis.
In Ring shape, Value is mapped to degrees and Hue is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L22)

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

### HueSaturation

```rust
HueSaturation = 2
```

The Hue and Saturation components.

In Box shape, Hue is mapped to the X-axis and Saturation is mapped to the Y-axis.
In Ring shape, Hue is mapped to degrees and Saturation is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L28)

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

### SaturationHue

```rust
SaturationHue = 3
```

The Saturation and Hue components.

In Box shape, Saturation is mapped to the X-axis and Hue is mapped to the Y-axis.
In Ring shape, Saturation is mapped to degrees and Hue is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L34)

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

### SaturationValue

```rust
SaturationValue = 4
```

The Saturation and Value components.

In Box shape, Saturation is mapped to the X-axis and Value is mapped to the Y-axis.
In Ring shape, Saturation is mapped to degrees and Value is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L40)

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

### ValueSaturation

```rust
ValueSaturation = 5
```

The Value and Saturation components.

In Box shape, Value is mapped to the X-axis and Saturation is mapped to the Y-axis.
In Ring shape, Value is mapped to degrees and Saturation is mapped to radius.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.ColorPicker/color_spectrum/color_spectrum_components.rs#L46)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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