Esempio n. 1
0
 /// <summary>
 /// Linear color interpolation.
 /// </summary>
 public static Color Lerp(Color toColor, Color fromColor, float amount)
 {
     Color delta = toColor.Subtract(fromColor);
     delta = delta.Multiply(amount);
     return fromColor.Add(delta);
 }