animateColor
fun animateColor(transitionSpec: Segment<S>.() -> FiniteAnimationSpec<Color> = { spring() }, label: String = "color", targetValueByState: (S) -> Color): Value<Color>
Animates a Color property with per-channel interpolation.
Return
A Value containing the current interpolated color.
Parameters
transitionSpec
Provides the animation spec. Defaults to spring.
label
Optional label for this animation, used for tracing attribution.
targetValueByState
Maps the target state to the target color.