I’ve kind of figured out what is going on… 😉
Adding the fill (RGB) animator allows the change of levels between the ‘text’ colour and the ‘fill’ colour
The ‘range selector’ doesn’t allow for a per word selection, only a range within the whole text box, so we delete that
The ‘expression selector’ allows the change to occur based on the index of text within the text box – with the expression disabled you can see the colours generated by using the ‘amount’ values as R G and B. – i.e. at 100,100,100 it is all ‘fill’ at 0,0,0 it is all ‘text’ colour
It’s less confusing if the text colour is Black and the Fill is white – thus the amount values become RGB rather than 1-R, 1-G, 1-B.
With the amount expression enabled the default expression does a gradation between black and white over the text box.
With the expression below the value depends on the index of the word (if ‘words’ is selected for the expression to be based on)
The palette can be changed accordingly
I hope this helps, it certainly helped me to think about it (and thanks to Dan for the original)
palette = [[100,0,0],[0,100,0],[0,0,100],[100,100,100]];
// [red,blue,green,white]
switch (textIndex%4) {
case 1:
idx = 0;
break;
case 3:
idx = 2;
break;
default:
idx = 1;
}
palette[idx]