예제 #1
0
 /// <summary>
 /// Converts HSL to .net Color.
 /// </summary>
 /// <param name="hsl">The HSL structure to convert.</param>
 public static Color HSLtoColor(HSL hsl)
 {
     return(HSLtoColor(hsl.Hue, hsl.Saturation, hsl.Luminance));
 }
예제 #2
0
 /// <summary>
 /// Converts HSL to RGB.
 /// </summary>
 /// <param name="hsl">The HSL structure to convert.</param>
 public static RGB HSLtoRGB(HSL hsl)
 {
     return(HSLtoRGB(hsl.Hue, hsl.Saturation, hsl.Luminance));
 }