Class Hsv
Definition
Namespace: StardewUI.Graphics
Assembly: StardewUI.dll
A color in the HSV space.
Inheritance
Object ⇦ Hsv
Implements
IEquatable<Hsv>
Members
Constructors
Name | Description |
---|---|
Hsv(Int32, Single, Single) | A color in the HSV space. |
Properties
Name | Description |
---|---|
EqualityContract | |
Hue | The color hue. |
Saturation | The color saturation. |
Value | The color value or brightness. |
Methods
Name | Description |
---|---|
FromRgb(Color) | Converts an RGB color to its HSV equivalent. |
ToRgb(Single) | Converts this color to its RGB equivalent. |
Details
Constructors
Hsv(int, float, float)
A color in the HSV space.
Parameters
Saturation
Single
The color saturation.
Value
Single
The color value or brightness.
Properties
EqualityContract
Property Value
Hue
The color hue.
Property Value
Saturation
The color saturation.
Property Value
Value
The color value or brightness.
Property Value
Methods
FromRgb(Color)
Converts an RGB color to its HSV equivalent.
Parameters
color
Color
The RGB color.
Returns
The color
converted to HSV components.
ToRgb(float)
Converts this color to its RGB equivalent.
Parameters
alpha
Single
Optional alpha component if not 1 (fully opaque).
Returns
The RGB color.