Esempio n. 1
0
 /// <summary>
 /// Returns a HSL color.
 /// </summary>
 /// <returns></returns>
 public HslColor ToHslColor()
 {
     return(ColorConverting.RgbToHsl(ToRgbColor()));
 }
Esempio n. 2
0
 /// <summary>
 /// Returns a HSL color.
 /// </summary>
 /// <returns></returns>
 public HslColor ToHslColor()
 {
     return(ColorConverting.RgbToHsl(this));
 }
Esempio n. 3
0
        // ------------------------------------------------------------------

        /// <summary>
        /// Creates from a given color.
        /// </summary>
        /// <param name="color">The color.</param>
        /// <returns></returns>
        public static HslColor FromColor(
            Color color)
        {
            return(ColorConverting.RgbToHsl(
                       ColorConverting.ColorToRgb(color)));
        }