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)); }
public override IRgb ToRgb() { return(HsvConverter.ToColor(this)); }
public override void Initialize(IRgb color) { HsvConverter.ToColorSpace(color, this); }