示例#1
0
    public static HSLColor RgbToHsl(Color color)
    {
        double h = 0;
        double s = 0;
        double l = 0;

        HslRgbUtils.RgbToHsl
            (color, out h, out s, out l);

        return(new HSLColor((float)h, (float)s, (float)l));
    }
示例#2
0
 public static Color HslToRgb(double h, double s, double l)
 {
     return(HslRgbUtils.HslToRgb(h, s, l));
 }