This takes the delta time since the last update call as the input.
This is called with the value (0-1) of the amount that this animation has completed by. TODO: word better
If the repeat count is negative, then we repeat infinitely. Otherwise, we run the animation repeatCount number of times.
This determines the style of our animation repeat