asmrobot
2019-11-21 589ed88a5924a7494e21b95b6bbff5e46ff49ddd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace RichCreator.Utility.Structs
{
    public struct ZTHsvFloatColor
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="h">色相(0~1)</param>
        /// <param name="s">饱合度(0~1)</param>
        /// <param name="v">明度(0~1)</param>
        public ZTHsvFloatColor(double h, double s, double v)
        {
            this.H = h;
            this.S = s;
            this.V = v;
        }
 
        /// <summary>
        /// 色相(0~1)
        /// </summary>
        public double H;
 
        /// <summary>
        /// 饱合度(0~1)
        /// </summary>
        public double S;
 
        /// <summary>
        /// 明度(0~1)
        /// </summary>
        public double V;
 
 
        public override string ToString()
        {
            return $"({H},{S},{V})";
        }
 
 
    }
}