Signature for a function that returns color for each index
index
typedef ColorBuilder = Color Function(int index);