interpolate method

Color interpolate(
  1. Color end,
  2. double step
)

Interpolates to the defined step between this color and end.

Implementation

Color interpolate(Color end, double step) {
  return toRgbColor().interpolate(end.toRgbColor(), step).toColor();
}