using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RichCreator.Utility.Structs { /// /// 颜色 /// public struct ZTColor { public ZTColor(ZTHsvColor hsv) { byte r, g, b; ColorUtils.HSVtoRGB(((float)hsv.H)/180, ((float)hsv.S)/255, ((float)hsv.V)/255, out r, out g, out b); this.Red = r; this.Green = g; this.Blue = b; } public ZTColor(byte red,byte green,byte blue) { this.Red = red; this.Green = green; this.Blue = blue; } public byte Red; public byte Green; public byte Blue; } }