end method

void end()

Implementation

void end() {
  _index++;
  state = (
    _colors[(_index + 1) % _colors.length],
    _colors[_index % _colors.length]
  );
}