/// <summary> /// Converts the HslColor object to an RgbColor object. /// </summary> /// <returns></returns> public RgbColor ToRgb() { return(RgbColor.Parse(ToString())); }
/// <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()); }