fun <W> transform(transformer: Animation.ValueTransformer<T, W>): Animation<T, W>
fun <W> transform(transformer: (value: T) -> W): Animation<T, W>
Creates a new animation with original value type T
and a new transformed value
type W
.
W
- The animation's new transformed value type.
transformer
- The value transformer to use to transform the animation's original type
T
to a new transformed value type W
.
Return
A new animation with the same original value type T
and transformed value
type W
.