Files
ShrlAlgoToolkit/WPFluent/Models/Hsb.cs

37 lines
890 B
C#
Raw Normal View History

namespace WPFluent.Models
2024-09-22 11:05:41 +08:00
{
public struct Hsb
{
public Hsb(double Hue, double Saturation, double Brightness, double opacity = 1)
{
this.Hue = Hue;
this.Saturation = Saturation;
this.Brightness = Brightness;
this.Opacity = opacity;
}
2024-09-22 11:05:41 +08:00
/// <summary>
/// 亮度0~1
2024-09-22 11:05:41 +08:00
/// </summary>
public double Brightness { get; set; }
2024-09-22 11:05:41 +08:00
/// <summary>
/// 色相0~359
/// </summary>
public double Hue { get; set; }
2024-09-22 11:05:41 +08:00
/// <summary>
/// 不透明度0~1
2024-09-22 11:05:41 +08:00
/// </summary>
public double Opacity { get; set; }
2024-09-22 11:05:41 +08:00
/// <summary>
/// 饱和度0~1
2024-09-22 11:05:41 +08:00
/// </summary>
public double Saturation { get; set; }
2024-09-22 11:05:41 +08:00
//public override string ToString()
//{
// return base.ToString();
//}
}
}