blendColors function

Color blendColors(
  1. Color c1,
  2. Color c2,
  3. double factor
)

Implementation

Color blendColors(Color c1, Color c2, double factor) {
  return Color.fromARGB(
    blendNumbers(c1.alpha, c2.alpha, factor),
    blendNumbers(c1.red, c2.red, factor),
    blendNumbers(c1.green, c2.green, factor),
    blendNumbers(c1.blue, c2.blue, factor),
  );
}