OffsetArcAnimationSpec
@Sampled
fun OffsetArcAnimationSpec() {
// Will interpolate the Offset in arcs such that the curve of the quarter of an Ellipse is above
// the center.
ArcAnimationSpec<Offset>(mode = ArcAbove)
}DurationBasedAnimationSpec that interpolates 2-dimensional values using arcs of quarter of an Ellipse.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
fun OffsetArcAnimationSpec() {
// Will interpolate the Offset in arcs such that the curve of the quarter of an Ellipse is above
// the center.
ArcAnimationSpec<Offset>(mode = ArcAbove)
}Content updated: