Skip to content

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

NameSummary
.ctorInitializes a new instance of the [ColorState](# struct.

Properties

NameSummary
AGets or sets the alpha component.
RGB_RGets or sets the RGB red component.
RGB_GGets or sets the RGB green component.
RGB_BGets or sets the RGB blue component.
HSV_HGets or sets the HSV hue component.
HSV_SGets or sets the HSV saturation component.
HSV_VGets or sets the HSV value component.
HSL_HGets or sets the HSL hue component.
HSL_SGets or sets the HSL saturation component.
HSL_LGets or sets the HSL lightness component.

Methods

NameSummary
SetARGBSets the ARGB values.
ToString
GetHashCode
Equals

Operators

NameSummary
static op_Inequality
static op_Equality