예제 #1
0
파일: HSL.cs 프로젝트: FrankNagl/Serotonin
 /// <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));
 }
예제 #2
0
파일: HSL.cs 프로젝트: FrankNagl/Serotonin
 /// <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;
 }