lerpColors method

Color lerpColors(
  1. Color color1,
  2. Color color2,
  3. num alpha
)

Implementation

Color lerpColors(Color color1, Color color2, num alpha) {
  r = color1.r + (color2.r - color1.r) * alpha;
  g = color1.g + (color2.g - color1.g) * alpha;
  b = color1.b + (color2.b - color1.b) * alpha;

  return this;
}