-
color array with random hold time
hi!
having this Dan’s expression (used here https://forums.creativecow.net/thread/227/3939)
period = 2
holdTime = 0.5;seed = Math.floor(time/period);
t = time%period
seedRandom(seed,true);
if ( random() > .5 && t < holdTime) 100 else 0;
I’m trying to adapt it so instead of the 100 else 0, it goes thru an array of colors like this, but not sure how to do that
colors = [[255,205,45,255]/255,[220,20,60,255]/255,[30,144,255,255]/255,];any help will be welcome, thanks!!