Skip to content

HsvColor structure

Represents a color in HSV (Hue, Saturation, Value) color space.

public struct HsvColor : IEquatable<HsvColor>
name description
HsvColor(…) Represents a color in HSV (Hue, Saturation, Value) color space.
static FromColor(…) Converts a Color to HSV, ignoring its alpha.
static FromRgb(…) Converts RGB components to HSV.
H { get; } Gets the hue in degrees, in [0, 360).
S { get; } Gets the saturation, in [0, 1].
V { get; } Gets the value (brightness), in [0, 1].
Equals(…) Determines whether this instance is equal to another HSV color.
override Equals(…)
override GetHashCode()
ToRgb() Converts this HSV color to an RGB Color with full opacity.
override ToString()
static HsvToRgb(…) Converts HSV components to an RGB Color with full opacity.
static HueToRgb(…) Returns the pure hue color (S=1, V=1) for the given hue angle.
operator == Determines whether two HSV colors are equal.
operator != Determines whether two HSV colors are not equal.