public ColorHSL(Color c) { ColorHSL temp = FromRGBA(c); h = temp.h; s = temp.s; l = temp.l; a = temp.a; }
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) )); }