添加项目文件。
This commit is contained in:
33
Wpf.Ui.Extend/Models/Hsb.cs
Normal file
33
Wpf.Ui.Extend/Models/Hsb.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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();
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user