getColorAt method

ColorModel getColorAt(
  1. double delta
)

Returns the color at delta by interpolating between the colors in the list.

Implementation

ColorModel getColorAt(double delta) {
  assert(isNotEmpty, 'A color can\'t be returned from an empty list.');
  assert(delta >= 0.0 && delta <= 1.0);
  return cast<cm.ColorModel>().getColorAt(delta).cast();
}