Struct HSV
Represents a colour in HSV form.
public struct HSV
- Inherited Members
Constructors
HSV(Color)
public HSV(Color rgb)
Parameters
rgb
Color
HSV(float, float, float)
public HSV(float hue, float saturation, float value)
Parameters
HSV(float, float, float, float)
public HSV(float hue, float saturation, float value, float alpha)
Parameters
Properties
a
Alpha.
public float a { readonly get; set; }
Property Value
color
public Color color { get; }
Property Value
- Color
h
Hue.
public float h { readonly get; set; }
Property Value
hsl
public HSL hsl { get; }
Property Value
s
Saturation.
public float s { readonly get; set; }
Property Value
v
Value.
public float v { readonly get; set; }
Property Value
Methods
ToColor()
public Color ToColor()
Returns
- Color
ToHSL()
public HSL ToHSL()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToString(int)
public string ToString(int decimalPlaces)
Parameters
decimalPlaces
int
Returns
Operators
explicit operator Color(HSV)
public static explicit operator Color(HSV hsv)
Parameters
hsv
HSV
Returns
- Color
explicit operator HSL(HSV)
public static explicit operator HSL(HSV hsv)
Parameters
hsv
HSV