KeyframesSpec
KeyframesSpec creates a com.jakewharton.mosaic.animation.VectorizedKeyframesSpec animation.
com.jakewharton.mosaic.animation.VectorizedKeyframesSpec animates based on the values defined at different timestamps in the duration of the animation (i.e. different keyframes). Each keyframe can be defined using KeyframesSpecConfig.at. com.jakewharton.mosaic.animation.VectorizedKeyframesSpec allows very specific animation definitions with a precision to millisecond.
For each interval, you may provide a custom com.jakewharton.mosaic.animation.Easing by use of the KeyframesSpecConfig.using function.
By default, values are animated linearly from one interval to the next (similar to tween), however for 2-dimensional values you may animate them using arcs of quarter of an Ellipse with KeyframesSpecConfig.using and com.jakewharton.mosaic.animation.ArcMode:
If instead, you wish to have a smooth curvy animation across all intervals, consider using KeyframesWithSplineSpec.
Types
Holder class for building a keyframes animation.
KeyframesSpecConfig stores a mutable configuration of the key frames, including durationMillis, delayMillis, and all the key frames. Each key frame defines what the animation value should be at a particular time. Once the key frames are fully configured, the KeyframesSpecConfig can be used to create a KeyframesSpec.
Functions
Creates a com.jakewharton.mosaic.animation.VectorizedAnimationSpec with the given com.jakewharton.mosaic.animation.TwoWayConverter.