Exemplo n.º 1
0
 public static ColorHSV LerpUnclamped(ColorHSV a, ColorHSV v, float t)
 {
     return(new ColorHSV(a.h + (v.h - a.h) * t, a.s + (v.s - a.s) * t, a.v + (v.v - a.v) * t,
                         a.a + (v.a - a.a) * t));
 }
Exemplo n.º 2
0
 public bool Equals(ColorHSV other)
 {
     return(Mathf.Approximately(h, other.h) && Mathf.Approximately(s, other.s) &&
            Mathf.Approximately(v, other.v) && Mathf.Approximately(a, other.a));
 }
Exemplo n.º 3
0
 public static ColorHSV Lerp(ColorHSV a, ColorHSV b, float t)
 {
     t = Mathf.Clamp01(t);
     return(LerpUnclamped(a, b, t));
 }