toggle menu
core
common
switch theme
search in API
core
/
com.erolc.mrouter.route.shareelement
/
ShareTransition
/
animateColor
animate
Color
@
Composable
fun
animateColor
(
targetColorSpace
:
ColorSpace
=
Color.White.colorSpace
,
transitionSpec
:
@
Composable
Transition.Segment
<
ShareState
>
.
(
)
->
FiniteAnimationSpec
<
Color
>
=
{ spring() }
)
:
@
Composable
ShareAnim
<
Color
>
.
(
)
->
State
<
Color
>
Parameters
target
Color
Space
目标颜色的色域