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]

  • h The hue color component.
  • s Saturation of the color.
  • v Brightness of the color.
  • a Alpha of the color.

public ColorHsv WithHue( float hue )

Returns a copy of this color with given Hue value.

  • hue The Hue override.
  • Returns The new color.

public ColorHsv WithSaturation( float saturation )

Returns a copy of this color with given Saturation value.

  • saturation The Saturation override.
  • Returns The new color.

public ColorHsv WithValue( float value )

Returns a copy of this color with given Brightness value.

  • value The Brightness override.
  • Returns The new color.

public ColorHsv WithAlpha( float alpha )

Returns a copy of this color with given alpha value.

  • alpha The 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.