cycledColor static method

Color cycledColor(
  1. List<Color> colors,
  2. int i
)

Gets a color from a list that is considered to be infinitely repeating.

Implementation

static Color cycledColor(List<Color> colors, int i) {
  return colors[i % colors.length];
}