SpringSpec
@Immutable
Creates a SpringSpec that uses the given spring constants (i.e. dampingRatio and stiffness. The optional visibilityThreshold defines when the animation should be considered to be visually close enough to round off to its target.
Parameters
dampingRatio
damping ratio of the spring. com.jakewharton.mosaic.animation.Spring.DampingRatioNoBouncy by default.
stiffness
stiffness of the spring. com.jakewharton.mosaic.animation.Spring.StiffnessMedium by default.
visibilityThreshold
specifies the visibility threshold
Functions
Link copied to clipboard
open override fun <V : AnimationVector> vectorize(converter: TwoWayConverter<T, V>): VectorizedSpringSpec<V>
Creates a com.jakewharton.mosaic.animation.VectorizedAnimationSpec with the given com.jakewharton.mosaic.animation.TwoWayConverter.