Random keyframe


Add a new type of keyframe to timelines: random. This keyframe accepts an array of values for a property. For example, at time 0 there is a normal keyframe, the color property of some node is white. At time 1000 there is a “random” keyframe, where the color node can be red, yellow, or green. So the color can transition between white and any other of the listed colors in 1000ms. I find myself often splitting timelines and coding it to add an element of randomness, and I think that kind of defeats the purpose of using timelines. Might as well just code everything. Maybe also add this random functionality to states.