animatedRoundedBackground

fun DrawScope.animatedRoundedBackground(animatedScale: Animatable<Float, AnimationVector1D>, backgroundColor: Color, cornerRadius: Dp)(source)

Draws a rounded background with an animated scale.

This function is intended to be used within a DrawScope to draw a rounded rectangle that can be animated using the provided animatedScale.

Parameters

animatedScale

The animatable scale value to control the size of the background.

backgroundColor

The color of the background.

cornerRadius

The corner radius of the rounded rectangle.