33 lines
891 B
C#
33 lines
891 B
C#
namespace Wpf.Ui.Extend.Models
|
|
{
|
|
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;
|
|
}
|
|
/// <summary>
|
|
/// 不透明度0~1
|
|
/// </summary>
|
|
public double Opacity { get; set; }
|
|
/// <summary>
|
|
/// 色相0~359
|
|
/// </summary>
|
|
public double Hue { get; set; }
|
|
/// <summary>
|
|
/// 饱和度0~1
|
|
/// </summary>
|
|
public double Saturation { get; set; }
|
|
/// <summary>
|
|
/// 亮度0~1
|
|
/// </summary>
|
|
public double Brightness { get; set; }
|
|
//public override string ToString()
|
|
//{
|
|
// return base.ToString();
|
|
//}
|
|
}
|
|
} |