/// <summary>
 /// Returns a HSL color.
 /// </summary>
 /// <returns></returns>
 public HSLColour ToHSLColour()
 {
     return(ColourConverting.RGBToHSL(ToRGBColour()));
 }
        // ------------------------------------------------------------------

        /// <summary>
        /// Creates from a given color.
        /// </summary>
        /// <param name="colour">The color.</param>
        /// <returns></returns>
        public static HSBColour FromColour(Color colour)
        {
            return(ColourConverting.ColourToRGB(colour).ToHSBColour());
        }
 /// <summary>
 /// Returns a RGB color.
 /// </summary>
 /// <returns></returns>
 public RGBColour ToRGBColour()
 {
     return(ColourConverting.HSBToRGB(this));
 }
 /// <summary>
 /// Returns the underlying .NET color.
 /// </summary>
 /// <returns></returns>
 public Color ToColour()
 {
     return(ColourConverting.HSBToRGB(this).ToColour());
 }
        // ------------------------------------------------------------------

        /// <summary>
        /// Creates from a given color.
        /// </summary>
        /// <param name="colour">The color.</param>
        /// <returns></returns>
        public static HSLColour FromColour(Color colour)
        {
            return(ColourConverting.RGBToHSL(ColourConverting.ColourToRGB(colour)));
        }
 /// <summary>
 /// Returns the underlying .NET color.
 /// </summary>
 /// <returns></returns>
 public Color ToColour()
 {
     return(ColourConverting.RGBToColour(this));
 }
 /// <summary>
 /// Returns a HSL color.
 /// </summary>
 /// <returns></returns>
 public HSLColour ToHSLColour()
 {
     return(ColourConverting.RGBToHSL(this));
 }