struct ColorHsv
in global
A color in Hue-Saturation-Value/Brightness format.
public float Hue { get; set; }
Hue component of this color in range 0 to 360.
public float Saturation { get; set; }
Saturation of this color in range 0 (white) to 1 (full color).
public float Value { get; set; }
Brightness of this color in range 0 (black) to 1 (full color).
public float Alpha { get; set; }
Transparency of this color in range 0 (fully transparent) to 1 (fully opaque).
public ColorHsv( float h, float s, float v, float a = 1 )
Initializes a new HSV/HSB color. Hue is in the range of [0-360] and all other values are in range [0,1]
hThe hue color component.sSaturation of the color.vBrightness of the color.aAlpha of the color.
public ColorHsv WithHue( float hue )
Returns a copy of this color with given Hue value.
hueThe Hue override.- Returns The new color.
public ColorHsv WithSaturation( float saturation )
Returns a copy of this color with given Saturation value.
saturationThe Saturation override.- Returns The new color.
public ColorHsv WithValue( float value )
Returns a copy of this color with given Brightness value.
valueThe Brightness override.- Returns The new color.
public ColorHsv WithAlpha( float alpha )
Returns a copy of this color with given alpha value.
alphaThe alpha override.- Returns The new color.
public Color ToColor( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public static ColorHsv op_Implicit( Color rgb )
😔 No documentation found.
public static Color op_Implicit( ref ColorHsv hsv )
😔 No documentation found.
public static bool op_Equality( ColorHsv left, ColorHsv right )
😔 No documentation found.
public static bool op_Inequality( ColorHsv left, ColorHsv right )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public bool Equals( ColorHsv o )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.