In expressions, color is represented as an array of [red,green,blue,alpha] where the values have to be between 0 and 1. (Leave the alpha value set to 1 – it doesn’t do anything but it has to be there. So this would be one way to change the color at random every half second:
period = 0.5; // change color every .5 seconds
colors = [[1,0,0,1], // red
[0,1,0,1], // green
[0,0,1,1], // blue
[1,0,1,1], // magenta
[1,1,0,1], // yellow
[0,1,1,1]] // cyan
seed = Math.floor(time/period);
seedRandom(seed,true);
idx = Math.floor(random(colors.length));
colors[idx]
Dan