ColorState struct¶
Defined in
Namespace: CrissCross.Avalonia.UI
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.ColorState
Modifiers: public sealed
Summary¶
Represents the state of a color in multiple color spaces (RGB, HSV, HSL).
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class ColorState
class IEquatable~ColorState~ {
<>
}
IEquatable~ColorState~ <|.. ColorState
Implements: IEquatable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ColorState](# struct. |
Properties¶
| Name | Summary |
|---|---|
| A | Gets or sets the alpha component. |
| RGB_R | Gets or sets the RGB red component. |
| RGB_G | Gets or sets the RGB green component. |
| RGB_B | Gets or sets the RGB blue component. |
| HSV_H | Gets or sets the HSV hue component. |
| HSV_S | Gets or sets the HSV saturation component. |
| HSV_V | Gets or sets the HSV value component. |
| HSL_H | Gets or sets the HSL hue component. |
| HSL_S | Gets or sets the HSL saturation component. |
| HSL_L | Gets or sets the HSL lightness component. |
Methods¶
| Name | Summary |
|---|---|
| SetARGB | Sets the ARGB values. |
| ToString | |
| GetHashCode | |
| Equals |
Operators¶
| Name | Summary |
|---|---|
| static op_Inequality | |
| static op_Equality |