Exemple #1
0
 /// <summary>
 /// Adjusts the color to match the specified Hsva color.
 /// </summary>
 /// <param name="hsva"></param>
 public void SetHsva(ColorHsva hsva)
 {
     this = hsva.ToRgba();
 }
Exemple #2
0
 /// <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());
 }
Exemple #3
0
 /// <summary>
 /// Converts the color to Hsva.
 /// </summary>
 /// <returns></returns>
 public ColorHsva ToHsva()
 {
     return(ColorHsva.FromRgba(this));
 }