mix method

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

Mix this color with another color

Implementation

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