using System; using System.Collections.Generic; using System.Text; namespace OwlCore.WinUI.ColorExtractor.ColorSpaces { /// /// A Color in HSV colorspace. /// public struct HSVColor : IEquatable { /// /// Initializes a new instance of the struct. /// public HSVColor(int h, float s, float v) { H = h; S = s; V = v; } /// /// The Hue channel of the HSV color. /// /// /// Values range from 0-360 /// public int H { get; set; } /// /// The Saturation channel of the HSV color. /// /// /// Values range from 0-1. /// public float S { get; set; } /// /// The Value channel of the HSV color. /// /// /// Values range from 0-1. /// public float V { get; set; } /// public bool Equals(HSVColor other) { return H == other.H && S == other.S && V == other.V; } } }