/// <summary> /// Adjusts the color to match the specified Hsva color. /// </summary> /// <param name="hsva"></param> public void SetHsva(ColorHsva hsva) { this = hsva.ToRgba(); }
/// <summary> /// Creates a new color based on a Hsva value. /// </summary> /// <param name="hsva"></param> /// <returns></returns> public static ColorRgba FromHsva(ColorHsva hsva) { return(hsva.ToRgba()); }
/// <summary> /// Converts the color to Hsva. /// </summary> /// <returns></returns> public ColorHsva ToHsva() { return(ColorHsva.FromRgba(this)); }