internal static void ToColorSpace(IRgb color, IHsb item)
        {
            var hsv = new Hsv();

            HsvConverter.ToColorSpace(color, hsv);

            item.H = hsv.H;
            item.S = hsv.S;
            item.B = hsv.V;
        }
        internal static IRgb ToColor(IHsb item)
        {
            var hsv = new Hsv {
                H = item.H,
                S = item.S,
                V = item.B
            };

            return(HsvConverter.ToColor(hsv));
        }
Exemple #3
0
 public override IRgb ToRgb()
 {
     return(HsvConverter.ToColor(this));
 }
Exemple #4
0
 public override void Initialize(IRgb color)
 {
     HsvConverter.ToColorSpace(color, this);
 }