TFloatAnimation implements animations going from A to B values. Sometimes, you need to cycle through a number of intermediate steps between the starting and final points. The TFloatKeyAnimation class implements this kind of animation, allowing you to define a list of pairs (key-value pairs).
If you set up N entries, they will be split up into a sequence of animations from A to B, B to C, C to D, and so on, up to N-1 to N entries. The interpolation function will be applied globally but not to each segment of the animation. The key value is used to define at what point of the duration interval (using normalized time, in the 0 to 1 range) the value should be positioned.
In other words, you are not simply providing a list of values (that would be equally distributed across the 0 to Duration interval), but rather defining a segmentation of the duration period with a value associated with each section.
Let's consider the following TFloatKeyAnimation definition: