示例#1
0
 /// <summary>
 /// Converts the HslColor object to an RgbColor object.
 /// </summary>
 /// <returns></returns>
 public RgbColor ToRgb()
 {
     return(RgbColor.Parse(ToString()));
 }
示例#2
0
 /// <summary>
 /// Returns an HslColor object from a string.
 /// </summary>
 /// <param name="color"></param>
 /// <returns></returns>
 public static HslColor Parse(string color)
 {
     return(RgbColor.Parse(color).ToHsl());
 }