# ColorHSB struct

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public struct ColorHSB : IEquatable<ColorHSB>
```

Color representation in HSB color model

**Remarks:** This allows you to manage a color in the HSB (otherwise known as HSV) cylindrical model. This is a helper class to handle HSB colors. Whenever a color is used it must be converted to a [Color](https://eto.picoe.ca/api/type/eto.drawing.color.md) struct first, either by using [ColorHSB.ToColor()](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/tocolor.md) or the implicit conversion.

## Constructors

- [ColorHSB](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/ctor.md): (2 overloads) Initializes a new instance of the ColorHSB class with the same color values as `color`

## Properties

- [A](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/a.md): Gets or sets the alpha (0-1)
- [B](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/b.md): Gets or sets the brightness (0-1)
- [H](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/h.md): Gets or sets the hue (0-360)
- [S](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/s.md): Gets or sets the saturation (0-1)

## Methods

- [Distance](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/distance.md): (static) Calculates the 'distance' of two HSB colors
- [Equals](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/equals.md): (2 overloads) Compares a ColorHSB for equality
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/gethashcode.md): Gets the hash code for this object
- [ToColor](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/tocolor.md): Converts this instance to an equivalent RGB [Color](https://eto.picoe.ca/api/type/eto.drawing.color.md)

## Operators

- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/op-equality.md): (static) Compares two instances of the [ColorHSB](https://eto.picoe.ca/api/type/eto.drawing.colorhsb.md) for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/op-inequality.md): (static) Compares two instances of the [ColorHSB](https://eto.picoe.ca/api/type/eto.drawing.colorhsb.md) for inequality

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.drawing.colorhsb/op-implicit.md): (2 overloads, static) Implicitly converts from a ColorHSB to a [Color](https://eto.picoe.ca/api/type/eto.drawing.color.md)
