I'm not sure which method you're looking for, but if you just want to cycle through the colors, you could do something like this:
holdTime = 2; // hold each color for 2 seconds
a = effect("Color Control")("Color");
b = effect("Color Control 2")("Color");
c = effect("Color Control 3")("Color");
colors = [a,b,c];
idx = Math.floor(time/holdTime)%colors.length;
colors[idx]
but if you want to pick the colors randomly, it would be more like this:
holdTime = 2; // hold each color for 2 seconds
a = effect("Color Control")("Color");
b = effect("Color Control 2")("Color");
c = effect("Color Control 3")("Color");
colors = [a,b,c];
seed = Math.floor(time/holdTime);
seedRandom(seed,true);
idx = Math.floor(random(colors.length));
colors[idx]
... View more