Beispiel #1
0
        public ColorHSL(Color c)
        {
            ColorHSL temp = FromRGBA(c);

            h = temp.h;
            s = temp.s;
            l = temp.l;
            a = temp.a;
        }
Beispiel #2
0
 public static ColorHSL Lerp(ColorHSL a, ColorHSL b, float t)
 {
     return(new ColorHSL(
                Mathf.Lerp(a.h, b.h, t),
                Mathf.Lerp(a.s, b.s, t),
                Mathf.Lerp(a.l, b.l, t),
                Mathf.Lerp(a.a, b.a, t)
                ));
 }