blend method

Color blend(
  1. Color other,
  2. double ratio
)

Blends this color with another color

Implementation

Color blend(Color other, double ratio) {
  return Color.lerp(this, other, ratio.clamp(0.0, 1.0)) ?? this;
}