RainbowColorTween constructor

RainbowColorTween(
  1. List<Color> spectrum
)

Creates a Color tween.

Implementation

RainbowColorTween(List<Color> spectrum)
    : _rb = Rainbow(spectrum: spectrum, rangeStart: 0.0, rangeEnd: 1.0),
      super(begin: spectrum.first, end: spectrum.last);