Skip to content

Commit

Permalink
Use lerp functions when transforming plus path in AllToPlus icon
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 17, 2023
1 parent 4f0b346 commit 60ddf41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ fun TwineIcons.allToPlus(progress: Float): ImageVector {
pivotX = 12.0f,
pivotY = 12.0f,
) {
val transformedMove = (5.0f + (12.0f - 5.0f) * (1.0f - progress)).coerceAtLeast(5.0f)
val transformedLine = 12.0f + (19.0f - 12.0f) * progress
val transformedMove = lerp(12.0f, 5.0f, progress)
val transformedLine = lerp(12.0f, 19.0f, progress)

path(
name = "plus_horizontal",
Expand Down

0 comments on commit 60ddf41

Please sign in to comment.