Esempio n. 1
0
 /// <summary>
 /// Converts from <see cref="HSL"/> to <see cref="RGB"/> color space.
 /// </summary>
 /// <param name="hsl">The source color in <see cref="HSL"/> color space.</param>
 /// <returns>
 /// The color in <see cref="RGB"/> color space.
 /// </returns>
 public static RGB ToRGB(HSL hsl)
 {
     return(ToRGB(hsl.H, hsl.S, hsl.L));
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HSL"/> struct.
 /// </summary>
 /// <param name="hsl">The color in <see cref="HSL"/> color space.</param>
 public HSL(HSL hsl) : this()
 {
     H = hsl.H;
     S = hsl.S;
     L = hsl.L;
 }